Skip to content

Commit

Permalink
Fix cpu-only spmm compilation
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Schuchart <schuchart@icl.utk.edu>
  • Loading branch information
devreal committed Sep 6, 2023
1 parent 975e878 commit 2b7e67c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ttg/ttg/parsec/ttg.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@
#include "ttg/parsec/thread_local.h"
#include "ttg/parsec/ptr.h"
#include "ttg/parsec/task.h"
#ifdef TTG_HAVE_CUDART
#include "ttg/device/cublas_helper.h"
#endif // TTG_HAVE_CUDART
#include "ttg/parsec/parsec-ext.h"

#undef TTG_PARSEC_DEBUG_TRACK_DATA_COPIES
Expand Down Expand Up @@ -1320,12 +1318,12 @@ namespace ttg_parsec {
assert(dev_data.state() == ttg::TTG_DEVICE_CORO_WAIT_TRANSFER ||
dev_data.state() == ttg::TTG_DEVICE_CORO_WAIT_KERNEL);

#if defined(PARSEC_HAVE_DEV_CUDA_SUPPORT)
#if defined(PARSEC_HAVE_DEV_CUDA_SUPPORT) && defined(TTG_HAVE_CUDART)
parsec_cuda_exec_stream_t *cuda_stream = (parsec_cuda_exec_stream_t *)gpu_stream;
ttg::detail::cublas_set_kernel_stream(cuda_stream->cuda_stream);
#endif // PARSEC_HAVE_DEV_CUDA_SUPPORT

#if defined(PARSEC_HAVE_DEV_HIP_SUPPORT)
#if defined(PARSEC_HAVE_DEV_HIP_SUPPORT) && defined(TTG_HAVE_HIPBLAS)
parsec_hip_exec_stream_t *hip_stream = (parsec_hip_exec_stream_t *)gpu_stream;
ttg::detail::hipblas_set_kernel_stream(hip_stream->hip_stream);
#endif // PARSEC_HAVE_DEV_HIP_SUPPORT
Expand Down

0 comments on commit 2b7e67c

Please sign in to comment.