diff options
| author | tgrogers <[email protected]> | 2018-03-28 13:14:52 -0400 |
|---|---|---|
| committer | tgrogers <[email protected]> | 2018-03-28 13:14:52 -0400 |
| commit | 996ec14f61526ac2d50e338f874f37a180f6dfa0 (patch) | |
| tree | 4269d96b212aa5de65d37da45434792abfb62143 | |
| parent | b0ea6b829d1dc459c602e67818787ecbfd4be571 (diff) | |
This does not exist in older CUDAs - only compile it for >5. Not sure if 5 is appropraite - but we test 4.2 and it fails
| -rw-r--r-- | libcuda/cuda_runtime_api.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc index c622720..eda8d8e 100644 --- a/libcuda/cuda_runtime_api.cc +++ b/libcuda/cuda_runtime_api.cc @@ -832,6 +832,7 @@ __host__ cudaError_t CUDARTAPI cudaGetDeviceProperties(struct cudaDeviceProp *pr } } +#if (CUDART_VERSION > 5000) __host__ cudaError_t CUDARTAPI cudaDeviceGetAttribute(int *value, enum cudaDeviceAttr attr, int device) { const struct cudaDeviceProp *prop; @@ -881,6 +882,7 @@ __host__ cudaError_t CUDARTAPI cudaDeviceGetAttribute(int *value, enum cudaDevic return g_last_cudaError = cudaErrorInvalidDevice; } } +#endif __host__ cudaError_t CUDARTAPI cudaChooseDevice(int *device, const struct cudaDeviceProp *prop) { |
