bug fix (#456)
Bug fix for HIP thrust macro. Co-authored-by: Ruipeng Li <coe0141@redwood.cm.cluster>
This commit is contained in:
parent
c8ee841552
commit
ae8bbf619c
@ -425,9 +425,10 @@ using namespace thrust::placeholders;
|
||||
* The following one works OK for now */
|
||||
|
||||
#if defined(HYPRE_USING_CUDA)
|
||||
#define HYPRE_THRUST_CALL(func_name, ...) \
|
||||
#define HYPRE_THRUST_CALL(func_name, ...) \
|
||||
thrust::func_name(thrust::cuda::par(hypre_HandleDeviceAllocator(hypre_handle())).on(hypre_HandleCudaComputeStream(hypre_handle())), __VA_ARGS__);
|
||||
#elif defined(HYPRE_USING_HIP) \
|
||||
#elif defined(HYPRE_USING_HIP)
|
||||
#define HYPRE_THRUST_CALL(func_name, ...) \
|
||||
thrust::func_name(thrust::hip::par(hypre_HandleDeviceAllocator(hypre_handle())).on(hypre_HandleCudaComputeStream(hypre_handle())), __VA_ARGS__);
|
||||
#endif
|
||||
|
||||
|
||||
@ -373,9 +373,10 @@ using namespace thrust::placeholders;
|
||||
* The following one works OK for now */
|
||||
|
||||
#if defined(HYPRE_USING_CUDA)
|
||||
#define HYPRE_THRUST_CALL(func_name, ...) \
|
||||
#define HYPRE_THRUST_CALL(func_name, ...) \
|
||||
thrust::func_name(thrust::cuda::par(hypre_HandleDeviceAllocator(hypre_handle())).on(hypre_HandleCudaComputeStream(hypre_handle())), __VA_ARGS__);
|
||||
#elif defined(HYPRE_USING_HIP) \
|
||||
#elif defined(HYPRE_USING_HIP)
|
||||
#define HYPRE_THRUST_CALL(func_name, ...) \
|
||||
thrust::func_name(thrust::hip::par(hypre_HandleDeviceAllocator(hypre_handle())).on(hypre_HandleCudaComputeStream(hypre_handle())), __VA_ARGS__);
|
||||
#endif
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user