소스 검색

fix build without CUDA

Samuel Thibault 8 년 전
부모
커밋
283d125846
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/drivers/cuda/starpu_cublas.c

+ 2 - 0
src/drivers/cuda/starpu_cublas.c

@@ -80,8 +80,10 @@ void starpu_cublas_shutdown(void)
 
 void starpu_cublas_set_stream(void)
 {
+#ifdef STARPU_USE_CUDA
 	if (!_starpu_get_machine_config()->topology.cuda_th_per_dev ||
 		(!_starpu_get_machine_config()->topology.cuda_th_per_stream &&
 		 _starpu_get_machine_config()->topology.nworkerpercuda > 1))
 		cublasSetKernelStream(starpu_cuda_get_local_stream());
+#endif
 }