瀏覽代碼

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);