Skip to content

Commit b4d2f78

Browse files
committed
Note use of at-spawn.
1 parent d5a199b commit b4d2f78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/array.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ function GPUArrays._gpu_call(::JLBackend, f, A, args::Tuple, blocks_threads::Tup
194194
for threadidx in CartesianIndices(threads)
195195
thread_state = JLState(state, threadidx.I)
196196
tasks[threadidx] = @async @allowscalar f(thread_state, device_args...)
197-
# TODO: @async obfuscates the trace to any exception which happens during f
197+
# TODO: require 1.3 and use Base.Threads.@spawn for actual multithreading
198+
# (this would require a different synchronization mechanism)
198199
end
199200
for t in tasks
200201
fetch(t)

0 commit comments

Comments
 (0)