Explorar o código

tests/datawizard/gpu_register.c: compile opencl kernel

Nathalie Furmento %!s(int64=13) %!d(string=hai) anos
pai
achega
45e8deb138
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;