Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit dea9d9b

Browse files
committed
bug fix: one more cuda function to comment out for the static case.
1 parent f1f6c3e commit dea9d9b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/tool/hpcrun/gpu/nvidia/cuda-api.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,17 @@ cuda_device_compute_capability
240240
int *minor
241241
)
242242
{
243+
#ifndef HPCRUN_STATIC_LINK
243244
HPCRUN_CUDA_API_CALL(cuDeviceGetAttribute,
244245
(major, CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MAJOR, device_id));
245246

246247
HPCRUN_CUDA_API_CALL(cuDeviceGetAttribute,
247248
(minor, CU_DEVICE_ATTRIBUTE_COMPUTE_CAPABILITY_MINOR, device_id));
248249

249250
return 0;
251+
#else
252+
return -1;
253+
#endif
250254
}
251255

252256

0 commit comments

Comments
 (0)