mirror of https://github.com/microsoft/vcpkg.git
42 lines
1.2 KiB
Diff
42 lines
1.2 KiB
Diff
diff --git a/libs/Common/UtilCUDA.cpp b/libs/Common/UtilCUDA.cpp
|
|
index dddc6d5..54590a5 100644
|
|
--- a/libs/Common/UtilCUDA.cpp
|
|
+++ b/libs/Common/UtilCUDA.cpp
|
|
@@ -181,7 +181,12 @@ CUresult initDevice(int deviceID)
|
|
return CUDA_ERROR_INVALID_DEVICE;
|
|
}
|
|
devices.Insert(device);
|
|
+ #if defined(CUDA_VERSION) && CUDA_VERSION >= 13000
|
|
+ CUctxCreateParams params {};
|
|
+ checkCudaError(cuCtxCreate(&devices.Last().ctx, ¶ms, 1, device.ID));
|
|
+ #else
|
|
checkCudaError(cuCtxCreate(&devices.Last().ctx, CU_CTX_SCHED_AUTO, device.ID));
|
|
+ #endif
|
|
|
|
#if TD_VERBOSE != TD_VERBOSE_OFF
|
|
char name[2048];
|
|
diff --git a/libs/Common/UtilCUDA.h b/libs/Common/UtilCUDA.h
|
|
index 44d869d..21ad594 100644
|
|
--- a/libs/Common/UtilCUDA.h
|
|
+++ b/libs/Common/UtilCUDA.h
|
|
@@ -19,7 +19,6 @@
|
|
// CUDA toolkit
|
|
#include <cuda_runtime.h>
|
|
#include <cuda_runtime_api.h>
|
|
-#include <cuda_texture_types.h>
|
|
#include <curand_kernel.h>
|
|
#include <vector_types.h>
|
|
|
|
diff --git a/libs/MVS/PatchMatchCUDA.inl b/libs/MVS/PatchMatchCUDA.inl
|
|
index 349cc33..a23c5f5 100644
|
|
--- a/libs/MVS/PatchMatchCUDA.inl
|
|
+++ b/libs/MVS/PatchMatchCUDA.inl
|
|
@@ -49,7 +49,6 @@
|
|
// CUDA toolkit
|
|
#include <cuda_runtime.h>
|
|
#include <cuda_runtime_api.h>
|
|
-#include <cuda_texture_types.h>
|
|
#include <curand_kernel.h>
|
|
#include <vector_types.h>
|
|
|