Browse Source

Fix test with STARPU_NCUDA or OPENCL != 0

Samuel Thibault 8 years ago
parent
commit
f1933a7e50
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/disk/disk_pack.c

+ 4 - 0
tests/disk/disk_pack.c

@@ -85,6 +85,10 @@ int dotest(struct starpu_disk_ops *ops, char *base)
 	int ret = starpu_conf_init(&conf);
 	if (ret == -EINVAL)
 		return EXIT_FAILURE;
+#ifdef STARPU_HAVE_UNSETENV
+	unsetenv("STARPU_NCUDA");
+	unsetenv("STARPU_NOPENCL");
+#endif
 	conf.ncuda = 0;
 	conf.nopencl = 0;
 	conf.nmic = 0;