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

CLOC 1.0.x addrspacecast not implemented #16

Open
PXAHyLee opened this issue May 16, 2016 · 1 comment
Open

CLOC 1.0.x addrspacecast not implemented #16

PXAHyLee opened this issue May 16, 2016 · 1 comment

Comments

@PXAHyLee
Copy link

PXAHyLee commented May 16, 2016

Hi developers,

When using cloc 0.9 (which is based on llvm 3.2), one of the example, in AMD APP SDK, MonteCarloAsianDP_Kernels.cl can work.

However, when the new LLVM toolchain uses the addrspacecast to generate the kernel code, CLOC emits the error message like error: addrspacecast not implemented.

For now, I can still use cloc -hsail MonteCarloAsianDP_Kernels.cl to use the old version (hlc3.2) of LLVM toolchain to run my application. This issue can also be found in the current LLVM trunk.

So, how to work around this kind of problem when using new CLOC toolchain now? There are some benchmarks that fail to compile. [EDIT: I think a viable solution may be trying to not use generic address space in this case.]

Thanks.

The aforementioned example is in the attachment.
Kernel code
LLVM Assembly code

@gregrodgers
Copy link

You are doing the right thing to switch back to cloc.sh -hsail or -brig on this test case. Also, if you are using snack.sh, you need to switch to snackhsail.sh. The hsa code object path still has some roughness including some address spaces not implemented. When I have a new LLVM 3.9 code generator for amdgcn that supports this, I will create a new set of amdllvm packages and then update this issue.

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