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

LLVM IR linking warning due to mismatching datalayout #459

Closed
maleadt opened this issue May 25, 2023 · 1 comment
Closed

LLVM IR linking warning due to mismatching datalayout #459

maleadt opened this issue May 25, 2023 · 1 comment

Comments

@maleadt
Copy link
Member

maleadt commented May 25, 2023

Since #444 we're using a different datalayout, causing:

warning: Linking two modules of different data layouts: '' is 'e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v32:32:32-v64:64:64-v128:128:128-n16:32:64-ni:10:11:12:13' whereas 'text' is 'e-p:64:64:64:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v32:32:32-v64:64:64-v128:128:128-n16:32:64-ni:10:11:12:13'

We should probably override the libdevice datalayout to prevent such warnings.

cc @simonbyrne

@maleadt
Copy link
Member Author

maleadt commented May 26, 2023

Hmm, we're already doing this: https://github.com/JuliaGPU/CUDA.jl/blob/d3b13631f8c608470b11804e07d021735449012c/src/device/runtime.jl#L93-L95

Since the mismatch above is clearly from #444, I'm going to guess that this is due to a wrongly cached compiler runtime. Not sure how though, as updating GPUCompiler should have invalidated CUDA.jl which in turn should have invalidated the cached compiler runtime.

@simonbyrne If this happens again, please investigate and post some additional details so that we can fix this.

@maleadt maleadt closed this as completed May 26, 2023
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