Browse Source

examples/filters/custom_mf: proper use of macros

Nathalie Furmento 13 years ago
parent
commit
b867921f74

+ 1 - 1
examples/filters/custom_mf/custom_interface.c

@@ -197,7 +197,7 @@ static ssize_t allocate_custom_buffer_on_node(void *data_interface, uint32_t nod
 #endif /* !STARPU_USE_OPENCL */
 			
 		break;
-#if STARPU_USE_CUDA
+#ifdef STARPU_USE_CUDA
 	case STARPU_CUDA_RAM:
 	{
 		cudaError_t err;

+ 1 - 1
examples/filters/custom_mf/custom_mf_filter.c

@@ -311,7 +311,7 @@ main(void)
 	print_it();
 #endif
 
-#if STARPU_USE_OPENCL
+#ifdef STARPU_USE_OPENCL
 	if (nopencl > 0)
 	{
         	err = starpu_opencl_unload_opencl(&opencl_program);