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

Add temporary LLVM C API for accessing source location information. #27413

Merged
merged 1 commit into from
Jun 5, 2018

Conversation

maleadt
Copy link
Member

@maleadt maleadt commented Jun 4, 2018

For CUDAnative, in order to generate better error messages when we encounter invalid LLVM IR.
To be removed once we have D46627.

e.g.

using CUDAnative

foo() = nonexisting
bar() = foo()

julia> @cuda bar()
ERROR: could not compile bar() for GPU; unsupported LLVM IR

Reason: unsupported call to the Julia runtime (jl_get_binding_or_error)
Stacktrace:
 [1] foo at REPL[13]:1
 [2] bar at REPL[14]:1

Try inspecting generated code with the @device_code_... macros
Stacktrace:
 [1] #compiler_error#43 at /home/tbesard/Julia/CUDAnative/src/jit.jl:33

Ref maleadt/LLVM.jl@2b282be JuliaGPU/CUDAnative.jl@694eebe

@maleadt maleadt added the gpu Affects running Julia on a GPU label Jun 4, 2018
@maleadt maleadt merged commit 2c5aec9 into master Jun 5, 2018
@maleadt maleadt deleted the tb/llvm_debuglog branch June 5, 2018 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gpu Affects running Julia on a GPU
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants