Forráskód Böngészése

julia: Fix task_intert_color example.

Pierre Huchant 5 éve
szülő
commit
514013ce00

+ 1 - 1
julia/examples/task_insert_color/task_insert_color.jl

@@ -34,7 +34,7 @@ function task_insert_color_with_starpu(val ::Ref{Int32})
             starpu_task_submit(StarpuTask(cl = cl2, handles = [hVal]))
 
             # In the trace file, the following tasks will be red as specified in @starpu_async_cl
-            @starpu_async_cl task_insert_color(hVal) [STARPU_RW] [] 0xFF0000
+            @starpu_async_cl task_insert_color(hVal) [STARPU_RW] () 0xFF0000
 
 	end
     end

+ 1 - 1
julia/src/StarPU.jl

@@ -879,7 +879,7 @@ end
     Creates and submits an asynchronous task running cl Codelet function.
     Ex : @starpu_async_cl cl(handle1, handle2)
 """
-macro starpu_async_cl(expr, modes, cl_arg=[], color ::UInt32=0x00000000)
+macro starpu_async_cl(expr, modes, cl_arg=(), color ::UInt32=0x00000000)
 
     if (!isa(expr, Expr) || expr.head != :call)
         error("Invalid task submit syntax")