Bläddra i källkod

tests/datawizard/gpu_register.c: compile opencl kernel

Nathalie Furmento 13 år sedan
förälder
incheckning
45e8deb138
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3 0
      tests/datawizard/gpu_register.c

+ 3 - 0
tests/datawizard/gpu_register.c

@@ -269,6 +269,9 @@ int main(int argc, char **argv)
 #endif
 
 #ifdef STARPU_USE_OPENCL
+	ret = starpu_opencl_load_opencl_from_file("tests/datawizard/scal_opencl.cl", &opencl_program, NULL);
+	STARPU_CHECK_RETURN_VALUE(ret, "starpu_opencl_load_opencl_from_file");
+
 	ret = test_opencl();
 	if (ret == 1)
 		goto fail;