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

SPIRVIntrinsics: Unknown type Int8 on aarch64-linux #236

Open
maleadt opened this issue Sep 23, 2024 · 1 comment
Open

SPIRVIntrinsics: Unknown type Int8 on aarch64-linux #236

maleadt opened this issue Sep 23, 2024 · 1 comment

Comments

@maleadt
Copy link
Member

maleadt commented Sep 23, 2024

Apparently both char and cuchar are unsigned on this platform, so we need to fix how Int8 intrinsics are mangled (or use different intrinsics for Int8). Probably by checking how an int8_t call (which I presume is still signed on linux-aarch64) is compiled by OpenCL compilers.

@giordano
Copy link

Apparently what makes things even more complicated is that this is really compiler-dependent (as most types in C), not just platform: https://stackoverflow.com/a/20576301 suggests that this can be changed with an option in XCode for macOS platforms, and there's an llvm option to choose the signedness of char.

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