浏览代码

remove now useless special case

Samuel Thibault 10 年之前
父节点
当前提交
5675d4ae52
共有 1 个文件被更改,包括 1 次插入11 次删除
  1. 1 11
      src/drivers/cuda/driver_cuda.c

+ 1 - 11
src/drivers/cuda/driver_cuda.c

@@ -218,17 +218,7 @@ void starpu_cuda_set_device(unsigned devid STARPU_ATTRIBUTE_UNUSED)
 #if !defined(HAVE_CUDA_MEMCPY_PEER) && defined(HAVE_CUDA_GL_INTEROP_H)
 #if !defined(HAVE_CUDA_MEMCPY_PEER) && defined(HAVE_CUDA_GL_INTEROP_H)
 done:
 done:
 #endif
 #endif
-	if (STARPU_UNLIKELY(cures
-#ifdef STARPU_OPENMP
-		/* When StarPU is used as Open Runtime support,
-		 * starpu_omp_shutdown() will usually be called from a
-		 * destructor, in which case cudaThreadExit() reports a
-		 * cudaErrorCudartUnloading here. There should not
-		 * be any remaining tasks running at this point so
-		 * we can probably ignore it without much consequences. */
-		&& cures != cudaErrorCudartUnloading
-#endif /* STARPU_OPENMP */
-				))
+	if (STARPU_UNLIKELY(cures))
 		STARPU_CUDA_REPORT_ERROR(cures);
 		STARPU_CUDA_REPORT_ERROR(cures);
 #endif
 #endif
 }
 }