-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unsuported call to an unknown function when calling Distributions
#406
Comments
Your kernel is constructing a What if you tried:
|
In the actual code, the distribution depends on the state, something like julia> @metal threads=n kernel(state, Normal{Float32}(0f0,1f0))
ERROR: InvalidIRError: compiling MethodInstance for kernel(::MtlDeviceVector{Float32, 1}, ::Normal{Float32}) resulted in invalid LLVM IR
Reason: unsupported call to an unknown function (call to julia.get_pgcstack)
Stacktrace:
[1] randn_unlikely
@ ~/.julia/juliaup/julia-1.9.4+0.aarch64.apple.darwin14/share/julia/stdlib/v1.9/Random/src/normal.jl:81
[2] multiple call sites
@ unknown:0 These are the system info: macOS 14.5.0, Darwin 23.5.0
Toolchain:
- Julia: 1.10.4
- LLVM: 15.0.7
Julia packages:
- Metal.jl: 1.2.0
- LLVMDowngrader_jll: 0.3.0+1
1 device:
- Apple M1 Max (384.000 KiB allocated) |
External packages not supporting GPU execution is not a bug in the GPU support package, so it's probably better to file an issue on Distributions.jl for GPU compatibility. If that reveals specific features are needed for that support, you can file them here. For example, your stack trace seems to show that (For other questions like this, something in GitHub's discussions, or on Discourse or Slack, is probably better suited than filing a bug report.) |
Hello,
I've been trying to use
metal
withdistributions
but it seems code like this one would return an unsupported call error:Whereas the broadcast version works fine:
The text was updated successfully, but these errors were encountered: