Disable CUDA profiler when using OpenCL
authorVedran Miletić <rivanvx@gmail.com>
Mon, 25 Apr 2016 14:05:21 +0000 (16:05 +0200)
committerSzilárd Páll <pall.szilard@gmail.com>
Tue, 26 Apr 2016 22:10:52 +0000 (00:10 +0200)
Replacing GPU_FUNC_TERM with CUDA_FUNC_TERM generates correct empty
implementations and therefore fixes linker errors.

Change-Id: I6485471eeb22bec9e6f0c3528bff7310593e3be6

src/gromacs/gpu_utils/gpu_utils.h

index 80fba6e6f1b063050acd1627b852297b15ea80c3..f485abb0fb4f1ff8b7b7661ff8c713180ab3919f 100644 (file)
@@ -243,7 +243,7 @@ void gpu_set_host_malloc_and_free(bool               bUseGpuKernels,
  *  Note that this is implemented only for the CUDA API.
  */
 CUDA_FUNC_QUALIFIER
-void startGpuProfiler(void) GPU_FUNC_TERM
+void startGpuProfiler(void) CUDA_FUNC_TERM
 
 
 /*! \brief Resets the GPU profiler if mdrun is being profiled.
@@ -257,7 +257,7 @@ void startGpuProfiler(void) GPU_FUNC_TERM
  * Note that this is implemented only for the CUDA API.
  */
 CUDA_FUNC_QUALIFIER
-void resetGpuProfiler(void) GPU_FUNC_TERM
+void resetGpuProfiler(void) CUDA_FUNC_TERM
 
 
 /*! \brief Stops the CUDA profiler if mdrun is being profiled.
@@ -269,7 +269,7 @@ void resetGpuProfiler(void) GPU_FUNC_TERM
  *  Note that this is implemented only for the CUDA API.
  */
 CUDA_FUNC_QUALIFIER
-void stopGpuProfiler(void) GPU_FUNC_TERM
+void stopGpuProfiler(void) CUDA_FUNC_TERM
 
 
 #endif