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

LLVMType of MtlDeviceArray needs changing/manipulation #6

Closed
max-Hawkins opened this issue Mar 21, 2022 · 0 comments
Closed

LLVMType of MtlDeviceArray needs changing/manipulation #6

max-Hawkins opened this issue Mar 21, 2022 · 0 comments

Comments

@max-Hawkins
Copy link
Contributor

Core.LLVMPtr's LLVM type is an opaque pointer that causes improper bitcasts when used in the context of MtlDeviceArrays. To avoid this, some manipulation of the pointer type is done in GPUCompiler.jl/src/metal.jl. I'm opening this issue so there can be some shared discussion/thoughts on more systemic resolutions of this problem.

Example code:

using Metal
using LLVM
convert(LLVM.LLVMType, MtlDeviceArray{Float32,1,1})
convert(LLVM.LLVMType, Core.LLVMPtr{Float32,1})
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