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

GPUCompiler problems. #896

Open
lpawela opened this issue Dec 4, 2023 · 0 comments
Open

GPUCompiler problems. #896

lpawela opened this issue Dec 4, 2023 · 0 comments

Comments

@lpawela
Copy link

lpawela commented Dec 4, 2023

After compiling an app which uses CUDA.jl and moving to another machine I get

./test_comp/bin/TestCUDA 
fatal: error thrown and no exception handler available.
InitError(mod=:GPUCompiler, error=ErrorException("type Nothing has no field major"))
ijl_errorf at /cache/build/builder-amdci4-4/julialang/julia-release-1-dot-9/src/rtutils.c:77
ijl_has_no_field_error at /cache/build/builder-amdci4-4/julialang/julia-release-1-dot-9/src/rtutils.c:137
getproperty at ./Base.jl:37
__init__ at /tmp/TestCUDA/xxx/packages/GPUCompiler/U36Ed/src/GPUCompiler.jl:64
jfptr___init___56021.clone_1 at /solvers/test_comp/lib/julia/sys.so (unknown line)
_jl_invoke at /cache/build/builder-amdci4-4/julialang/julia-release-1-dot-9/src/gf.c:2758 [inlined]
ijl_apply_generic at /cache/build/builder-amdci4-4/julialang/julia-release-1-dot-9/src/gf.c:2940
jl_apply at /cache/build/builder-amdci4-4/julialang/julia-release-1-dot-9/src/julia.h:1880 [inlined]
jl_module_run_initializer at /cache/build/builder-amdci4-4/julialang/julia-release-1-dot-9/src/toplevel.c:75
_finish_julia_init at /cache/build/builder-amdci4-4/julialang/julia-release-1-dot-9/src/init.c:855
julia_init at /cache/build/builder-amdci4-4/julialang/julia-release-1-dot-9/src/init.c:804
ijl_init_with_image at /cache/build/builder-amdci4-4/julialang/julia-release-1-dot-9/src/jlapi.c:66 [inlined]
ijl_init_with_image at /cache/build/builder-amdci4-4/julialang/julia-release-1-dot-9/src/jlapi.c:55
ijl_init at /cache/build/builder-amdci4-4/julialang/julia-release-1-dot-9/src/jlapi.c:82
main at ./test_comp/bin/TestCUDA (unknown line)
unknown function (ip: 0x146198f87d8f)
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
_start at ./test_comp/bin/TestCUDA (unknown line)

MWE
Project.toml

name = "TestCUDA"
uuid = "721d7c47-4bfd-4d43-ae95-5398a80267cb"
version = "0.1.0"

[deps]
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"

src/TestCUDA.jl

module TestCUDA

using CUDA

function julia_main()::Cint
        a = CUDA.rand(100, 100)
        a * a
        return 0
end
end # module TestCUDA

Launch a clean instance of julia with JULIA_DEPOT_PATH=tmp julia, then install PackageCompiler and build app

]add PackageCompiler
julia> create_app(".", "test_comp", force=true)

Output of versioninfo()

julia> versioninfo()
Julia Version 1.9.4
Commit 8e5136fa297 (2023-11-14 08:46 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 20 × 12th Gen Intel(R) Core(TM) i7-12700KF
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, alderlake)
  Threads: 1 on 20 virtual cores
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

1 participant