소스 검색

socl/src/init.c: force the number of cpus to 0 and the number of opencl to 1

Nathalie Furmento 13 년 전
부모
커밋
8d3bcb7918
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      socl/src/init.c

+ 2 - 0
socl/src/init.c

@@ -27,6 +27,8 @@ __attribute__((constructor)) static void socl_init() {
   starpu_conf_init(&conf);
   conf.ncuda = 0;
   putenv("STARPU_NCUDA=0");
+  putenv("STARPU_NOPENCL=1");
+  putenv("STARPU_NCPUS=0");
 
   mem_object_init();