-
Notifications
You must be signed in to change notification settings - Fork 18
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 generates GCN instructions, HSAILasm cannot assemble them #15
Comments
HSAIL Tools have been augmented with support of vendor-specific extensions. To compile the code in question you have to specify extension name and use amd_gcn instead of gcn. For example:
GCN instructions differ from standard in that they are not IEEE-compliant. |
@dpreobrazhensky Thanks for your reply. How can I change that instruction name if I am compiling from OpenCL code? |
Do you have the latest toolchain? I'm not sure, but I believe it should have been updated accordingly. This feature (vendor-specific extensions) was committed half a year ago. |
@dpreobrazhensky We have been using CLOC for a very long time. Only since the most recent version (after the apt-get package is available), we had this problem. I knew that the gcn instructions are generated long time ago, but the compiled program works fine on Kaveri machines. After we updated CLOC, out program cannot get compiled. |
Sun, |
ok, just the two debs you need are on the git repo in packages/ubuntu. Please use these only if you are generating hsail or brig. The code object path needs an update to amdllvm which is too big to put on the git repo. That will come later in the week from the package server. |
Hi Greg, the latest CLOC version marks the |
When I was compiling some program with snackhsail.sh (I do not know when it changed to snackhsail, the old snack.sh does not work properly. Is AMD giving up HSAIL?), I notice some instruction is not compatible with HSA tool chains. I got the following error:
and
How does gcn_min different the min instruction in HSAIL and how does the gcn_divrelaxed different from the div instruction in HSAIL? Should the CLOC compile the HSAIL program or only compiles for AMD GCN devices? How can another vendor use CLOC or even HSAIL if it generates GCN specific instructions?
The text was updated successfully, but these errors were encountered: