diff options
| author | Tim Rogers <[email protected]> | 2017-05-09 14:09:18 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-05-09 14:09:18 -0400 |
| commit | 0b18b586e78ff474e0b1db58c4f605b2b13b3727 (patch) | |
| tree | 1664ae81a1c4dde1fdd56df043fe21f0c02e79f0 /libcuda | |
| parent | 96d528311239d6ff82d7bec807a2509b344c9a60 (diff) | |
| parent | 7fe0d9214ba42be543862d8e40849d38f9b818bb (diff) | |
Merge pull request #32 from ElTantawy/dev
support for CUDA 8.0 PTX
Diffstat (limited to 'libcuda')
| -rw-r--r-- | libcuda/cuda_runtime_api.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libcuda/cuda_runtime_api.cc b/libcuda/cuda_runtime_api.cc index 8d717c5..cbe8a11 100644 --- a/libcuda/cuda_runtime_api.cc +++ b/libcuda/cuda_runtime_api.cc @@ -126,7 +126,9 @@ #include "host_defines.h" #include "builtin_types.h" #include "driver_types.h" +#if (CUDART_VERSION < 8000) #include "__cudaFatFormat.h" +#endif #include "../src/gpgpu-sim/gpu-sim.h" #include "../src/cuda-sim/ptx_loader.h" #include "../src/cuda-sim/cuda-sim.h" @@ -1795,7 +1797,9 @@ void** CUDARTAPI __cudaRegisterFatBinary( void *fatCubin ) cuobjdumpRegisterFatBinary(fat_cubin_handle, filename); return (void**)fat_cubin_handle; - } else { + } + #if (CUDART_VERSION < 8000) + else { static unsigned source_num=1; unsigned long long fat_cubin_handle = next_fat_bin_handle++; __cudaFatCudaBinary *info = (__cudaFatCudaBinary *)fatCubin; @@ -1852,6 +1856,7 @@ void** CUDARTAPI __cudaRegisterFatBinary( void *fatCubin ) } return (void**)fat_cubin_handle; } + #endif } void __cudaUnregisterFatBinary(void **fatCubinHandle) |
