Преглед изворни кода

tests/datawizard/gpu_register.c: compile opencl kernel

Nathalie Furmento пре 13 година
родитељ
комит
45e8deb138
1 измењених фајлова са 3 додато и 0 уклоњено
  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;