Skip to content

Commit

Permalink
Tacho : buid with CUDA + OpenMP
Browse files Browse the repository at this point in the history
Signed-off-by: iyamazaki <[email protected]>
  • Loading branch information
iyamazaki committed Dec 11, 2024
1 parent f590a0a commit 324ba20
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 24 deletions.
6 changes: 3 additions & 3 deletions packages/shylu/shylu_node/tacho/src/impl/Tacho_Chol.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ struct CholAlgorithm {
};

struct CholAlgorithm_Team {
#if defined(KOKKOS_ENABLE_OPENMP)
using type = ActiveHostAlgorithm<runsWithOMP()>::type;
#else
#if defined(KOKKOS_ENABLE_CUDA) || defined(KOKKOS_ENABLE_HIP)
using type = ActiveAlgorithm<runsOnCudaOrHIP()>::type;
#else
using type = ActiveHostAlgorithm<runsWithOMP()>::type;
#endif
};
} // namespace Tacho
Expand Down
6 changes: 3 additions & 3 deletions packages/shylu/shylu_node/tacho/src/impl/Tacho_Gemm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ struct GemmAlgorithm {
};

struct GemmAlgorithm_Team {
#if defined(KOKKOS_ENABLE_OPENMP)
using type = ActiveHostAlgorithm<runsWithOMP()>::type;
#else
#if defined(KOKKOS_ENABLE_CUDA) || defined(KOKKOS_ENABLE_HIP)
using type = ActiveAlgorithm<runsOnCudaOrHIP()>::type;
#else
using type = ActiveHostAlgorithm<runsWithOMP()>::type;
#endif
};

Expand Down
6 changes: 3 additions & 3 deletions packages/shylu/shylu_node/tacho/src/impl/Tacho_Gemv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ struct GemvAlgorithm {
};

struct GemvAlgorithm_Team {
#if defined(KOKKOS_ENABLE_OPENMP)
using type = ActiveHostAlgorithm<runsWithOMP()>::type;
#else
#if defined(KOKKOS_ENABLE_CUDA) || defined(KOKKOS_ENABLE_HIP)
using type = ActiveAlgorithm<runsOnCudaOrHIP()>::type;
#else
using type = ActiveHostAlgorithm<runsWithOMP()>::type;
#endif
};
} // namespace Tacho
Expand Down
6 changes: 3 additions & 3 deletions packages/shylu/shylu_node/tacho/src/impl/Tacho_Herk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ struct HerkAlgorithm {
};

struct HerkAlgorithm_Team {
#if defined(KOKKOS_ENABLE_OPENMP)
using type = ActiveHostAlgorithm<runsWithOMP()>::type;
#else
#if defined(KOKKOS_ENABLE_CUDA) || defined(KOKKOS_ENABLE_HIP)
using type = ActiveAlgorithm<runsOnCudaOrHIP()>::type;
#else
using type = ActiveHostAlgorithm<runsWithOMP()>::type;
#endif
};
} // namespace Tacho
Expand Down
6 changes: 3 additions & 3 deletions packages/shylu/shylu_node/tacho/src/impl/Tacho_LDL.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ struct LDL_Algorithm {
};

struct LDL_Algorithm_Team {
#if defined(KOKKOS_ENABLE_OPENMP)
using type = ActiveHostAlgorithm<runsWithOMP()>::type;
#else
#if defined(KOKKOS_ENABLE_CUDA) || defined(KOKKOS_ENABLE_HIP)
using type = ActiveAlgorithm<runsOnCudaOrHIP()>::type;
#else
using type = ActiveHostAlgorithm<runsWithOMP()>::type;
#endif
};
} // namespace Tacho
Expand Down
6 changes: 3 additions & 3 deletions packages/shylu/shylu_node/tacho/src/impl/Tacho_LU.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ struct LU_Algorithm {
};

struct LU_Algorithm_Team {
#if defined(KOKKOS_ENABLE_OPENMP)
using type = ActiveHostAlgorithm<runsWithOMP()>::type;
#else
#if defined(KOKKOS_ENABLE_CUDA) || defined(KOKKOS_ENABLE_HIP)
using type = ActiveAlgorithm<runsOnCudaOrHIP()>::type;
#else
using type = ActiveHostAlgorithm<runsWithOMP()>::type;
#endif
};

Expand Down
6 changes: 3 additions & 3 deletions packages/shylu/shylu_node/tacho/src/impl/Tacho_Trsm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ struct TrsmAlgorithm {
};

struct TrsmAlgorithm_Team {
#if defined(KOKKOS_ENABLE_OPENMP)
using type = ActiveHostAlgorithm<runsWithOMP()>::type;
#else
#if defined(KOKKOS_ENABLE_CUDA) || defined(KOKKOS_ENABLE_HIP)
using type = ActiveAlgorithm<runsOnCudaOrHIP()>::type;
#else
using type = ActiveHostAlgorithm<runsWithOMP()>::type;
#endif
};

Expand Down
6 changes: 3 additions & 3 deletions packages/shylu/shylu_node/tacho/src/impl/Tacho_Trsv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ struct TrsvAlgorithm {
};

struct TrsvAlgorithm_Team {
#if defined(KOKKOS_ENABLE_OPENMP)
using type = ActiveHostAlgorithm<runsWithOMP()>::type;
#else
#if defined(KOKKOS_ENABLE_CUDA) || defined(KOKKOS_ENABLE_HIP)
using type = ActiveAlgorithm<runsOnCudaOrHIP()>::type;
#else
using type = ActiveHostAlgorithm<runsWithOMP()>::type;
#endif
};

Expand Down

0 comments on commit 324ba20

Please sign in to comment.