diff --git a/src/cuda/api.hpp b/src/cuda/api.hpp index ae64047a..85f7618f 100644 --- a/src/cuda/api.hpp +++ b/src/cuda/api.hpp @@ -52,7 +52,9 @@ #include "api/launch_configuration.hpp" #include "api/kernel_launch.hpp" #include "api/virtual_memory.hpp" +#if CUDA_VERSION >= 10000 #include "api/external.hpp" +#endif // CUDA_VERSION >= 10000 #include "api/multi_wrapper_impls/pointer.hpp" #include "api/multi_wrapper_impls/array.hpp" diff --git a/src/cuda/api/external.hpp b/src/cuda/api/external.hpp index d2d50515..2d377ca5 100644 --- a/src/cuda/api/external.hpp +++ b/src/cuda/api/external.hpp @@ -22,9 +22,11 @@ enum kind_t : ::std::underlying_type::type { opaque_globally_shared_windows_handle = CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT, direct3d_12_heap = CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_HEAP, direct3d_12_committed_resource = CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D12_RESOURCE, +#if CUDA_VERSION >= 10200 direct3d_resource_shared_windows_handle = CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE, direct3d_resource_globally_shared_handle = CU_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_RESOURCE_KMT, nvscibuf_object = CU_EXTERNAL_MEMORY_HANDLE_TYPE_NVSCIBUF +#endif // CUDA_VERSION >= 10200 }; using descriptor_t = CUDA_EXTERNAL_MEMORY_HANDLE_DESC; diff --git a/src/cuda/api/types.hpp b/src/cuda/api/types.hpp index 4dc027bd..dd89ab07 100644 --- a/src/cuda/api/types.hpp +++ b/src/cuda/api/types.hpp @@ -817,6 +817,7 @@ enum class barrier_scope_t : typename ::std::underlying_type= 11700 +#if CUDA_VERSION >= 10000 /** * Representation of memory resources external to CUDA */ @@ -834,6 +835,8 @@ struct subregion_spec_t { } // namespace external +#endif // CUDA_VERSION >= 10000 + } // namespace memory /**