Skip to content

Commit

Permalink
Fic incorrect include in cuda_pinned_memory_resource.h
Browse files Browse the repository at this point in the history
We need `cuda_runtime.h`for the C++ `cudaMallocHost` and not `cuda_runtime_api.h`
  • Loading branch information
miscco committed Apr 17, 2024
1 parent 9a9bffd commit 0330422
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
#if !defined(_CCCL_COMPILER_MSVC_2017)

# if !defined(_CCCL_CUDA_COMPILER_NVCC) && !defined(_CCCL_CUDA_COMPILER_NVHPC)
# include <cuda_runtime_api.h>
# include <cuda_runtime.h>
# endif // !_CCCL_CUDA_COMPILER_NVCC && !_CCCL_CUDA_COMPILER_NVHPC

# include <cuda/__memory_resource/get_property.h>
# include <cuda/__memory_resource/properties.h>
# include <cuda/__memory_resource/resource.h>
# include <cuda/__memory_resource/resource_ref.h>
# include <cuda/std/__cuda/api_wrapper.h>
# include <cuda/std/detail/libcxx/include/__new/bad_alloc.h>
# include <cuda/std/__new/bad_alloc.h>

# if _CCCL_STD_VER >= 2014

Expand Down

0 comments on commit 0330422

Please sign in to comment.