Skip to content
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

Error using CUDA with Julia 1.9.1 #134

Open
liusulin opened this issue Aug 2, 2023 · 1 comment
Open

Error using CUDA with Julia 1.9.1 #134

liusulin opened this issue Aug 2, 2023 · 1 comment

Comments

@liusulin
Copy link

liusulin commented Aug 2, 2023

I was running the binomial_mnist.jl in examples on CUDA with julia binomial_mnist.jl and run into this error:

ERROR: LoadError: InvalidIRError: compiling kernel init_mar!(CuDeviceMatrix{Float32, 1}, CuDeviceVector{Union{ProbabilisticCircuits.BitsMul, ProbabilisticCircuits.BitsSum, ProbabilisticCircuits.BitsInput{ProbabilisticCircuits.BitsBinomial}}, 1}, CuDeviceMatrix{UInt8, 1}, UnitRange{Int64}, CuDeviceVector{Float32, 1}, Int32, Int32, ProbabilisticCircuits.var"#input_init_func#50") resulted in invalid LLVM IR
Reason: unsupported dynamic function invocation (call to depwarn(msg, funcsym; force) @ Base deprecated.jl:121)

Julia version: 1.9.1. ProbabilisticCircuits version: 0.4.1.
It seems depwarn is deprecated and thus causing the error. Can you help check and tell me the versions needed to run the package? Thanks very much!

@khosravipasha
Copy link
Contributor

I suspect something we call has been depreatd in new Julia version and causing issues. The code that handles cuda kernel calls is a bit delicate since a lot of type inference is happening but cuda kernels don't like that. The errors we get are not that informative due to weird way cuda type inference was/is handled from julia at the time.

  • Could you try running it on earlier version of Julia? Last time I ran this was > a year ago.

  • Also do you get similar errors when running other examples like examples/cat_hclt_mnist.jl?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants