Fix for hip compilation (#476)
This is a small fix for a typo that was preventing compilation with hip.
This commit is contained in:
parent
eaff5505ed
commit
f3cb1c170d
@ -369,7 +369,7 @@ using namespace thrust::placeholders;
|
||||
#if defined(HYPRE_USING_CUDA)
|
||||
#define GPU_LAUNCH_SYNC { hypre_SyncCudaComputeStream(hypre_handle()); HYPRE_CUDA_CALL( cudaGetLastError() ); }
|
||||
#elif defined(HYPRE_USING_HIP)
|
||||
#define GPU_LAUNCH_SYNC { hypre_SyncCudaComputeStream(hypre_handle()); HYPRE_CUDA_CALL( hipGetLastError() ); }
|
||||
#define GPU_LAUNCH_SYNC { hypre_SyncCudaComputeStream(hypre_handle()); HYPRE_HIP_CALL( hipGetLastError() ); }
|
||||
#endif
|
||||
#else // #if defined(HYPRE_DEBUG)
|
||||
#define GPU_LAUNCH_SYNC
|
||||
|
||||
@ -317,7 +317,7 @@ using namespace thrust::placeholders;
|
||||
#if defined(HYPRE_USING_CUDA)
|
||||
#define GPU_LAUNCH_SYNC { hypre_SyncCudaComputeStream(hypre_handle()); HYPRE_CUDA_CALL( cudaGetLastError() ); }
|
||||
#elif defined(HYPRE_USING_HIP)
|
||||
#define GPU_LAUNCH_SYNC { hypre_SyncCudaComputeStream(hypre_handle()); HYPRE_CUDA_CALL( hipGetLastError() ); }
|
||||
#define GPU_LAUNCH_SYNC { hypre_SyncCudaComputeStream(hypre_handle()); HYPRE_HIP_CALL( hipGetLastError() ); }
|
||||
#endif
|
||||
#else // #if defined(HYPRE_DEBUG)
|
||||
#define GPU_LAUNCH_SYNC
|
||||
|
||||
Loading…
Reference in New Issue
Block a user