@threads :dynamic expr #46301
serpenttom
started this conversation in
General
Replies: 2 comments
-
I have tried in v1.8.0. and both example succeed. It may be owing to the version of Julia. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm glad you figured it out! For future reference, this sort of question is best directed to the #hepdesk slack channel or the Julia discourse. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There is an ## Example for @threads in threadingconstructs.jl. My Julia is v1.7.3. The first example, @threads :static expr runs in success.
6.021147 seconds (62.77 k allocations: 3.639 MiB, 1.13% compilation time)
However, the second example fails.
ERROR: LoadError: ArgumentError: unsupported schedule argument in @threads
Stacktrace:
[1] var"@threads"(source::LineNumberNode, module::Module, args::Vararg{Any})
@ Base.Threads .\threadingconstructs.jl:137
in expression starting at REPL[4]:3
How can I solve this ERROR.
Thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions