소스 검색

SOCL/examples: simplify message

Nathalie Furmento 13 년 전
부모
커밋
48be920950
3개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      socl/examples/basic/basic.c
  2. 1 1
      socl/examples/clinfo/clinfo.c
  3. 1 1
      socl/examples/mandelbrot/mandelbrot.c

+ 1 - 1
socl/examples/basic/basic.c

@@ -72,7 +72,7 @@ int main(int UNUSED(argc), char** UNUSED(argv)) {
    printf("Querying platform...\n");
    err = clGetPlatformIDs(0, NULL, &num_platforms);
    if (num_platforms == 0) {
-      printf("No OpenCL platform found. If you use SOCL, this could mean StarPU wasn't configured for OpenCL. Try disabling CUDA support in StarPU (export STARPU_NCUDA=0).\n");
+      printf("No OpenCL platform found.\n");
       exit(77);
    }
    err = clGetPlatformIDs(sizeof(platforms)/sizeof(cl_platform_id), platforms, NULL);

+ 1 - 1
socl/examples/clinfo/clinfo.c

@@ -37,7 +37,7 @@ main(void) {
    // Plaform info
    err = clGetPlatformIDs(0, NULL, &num_platforms);
    if (num_platforms == 0) {
-      printf("No OpenCL platform found. If you use SOCL, this could mean StarPU wasn't configured for OpenCL. Try disabling CUDA support in StarPU (export STARPU_NCUDA=0).\n");
+      printf("No OpenCL platform found.\n");
       exit(77);
    }
    checkErr(err, "Unable to get platform count");

+ 1 - 1
socl/examples/mandelbrot/mandelbrot.c

@@ -316,7 +316,7 @@ int main(int argc, char **argv) {
 
   err = clGetPlatformIDs(0, NULL, &num_platforms);
   if (num_platforms == 0) {
-    printf("No OpenCL platform found. If you use SOCL, this could mean StarPU wasn't configured for OpenCL. Try disabling CUDA support in StarPU (export STARPU_NCUDA=0).\n");
+    printf("No OpenCL platform found\n");
     exit(0);
   }
   err = clGetPlatformIDs(sizeof(platforms)/sizeof(cl_platform_id), platforms, NULL);