Fix for hip compilation (#476)

This is a small fix for a typo that was preventing compilation with hip.
This commit is contained in:
Wayne Mitchell 2021-09-14 11:25:43 -07:00 committed by GitHub
parent eaff5505ed
commit f3cb1c170d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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