We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0b0eb2 commit 3efccfeCopy full SHA for 3efccfe
fastsafetensors/cpp/ext.cpp
@@ -301,9 +301,10 @@ void init_gil_release_from_env() {
301
302
int is_gds_supported(int deviceId)
303
{
304
- cudaError_t err;
305
- int driverVersion = 0;
+#ifndef USE_ROCM
306
int gdr_support = 1;
+ int driverVersion = 0;
307
+ cudaError_t err;
308
309
err = cuda_fns.cudaDriverGetVersion(&driverVersion);
310
if (err != cudaSuccess) {
@@ -319,6 +320,9 @@ int is_gds_supported(int deviceId)
319
320
}
321
322
return gdr_support;
323
+#endif
324
+ // ROCm does not have GDS
325
+ return 0;
326
327
328
int init_gds()
0 commit comments