ソースを参照

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
 }