-
Notifications
You must be signed in to change notification settings - Fork 16
Narrow repository's focus #15
Comments
I'm sorry, there is no error if I use |
Regarding LLVM, the issue that I've found is that this command works:
while this command does not:
Since one is a symlink of the other, I assume the issue has to do with paths. I suggest to either make both commands work, or to put working symlinks into P.S. the version of llvm-mc on my system is |
Hi, Do you have more information about the failing command? I can't really think of any reason why one one command would fail if it is a symlink of the other binary. |
In 1.2 we still have two LLVM Compiler code generators, One compiler leverages the LLVM Native Code Generator for GCN ISA. A second llvm based compiler which compiles to an intermediate language - HSAIL and has proprietary finalizer aka shader compiler. It is our legacy compiler which is used with HSA compatibility with PRM spec. It does not support GCN Assembly support |
@tstellarAMD I don't. I'm just happy that one of them works :) @gstoner The assembler under discussion is in |
I mean how does it fail? Is there an error message? |
@tstellarAMD Yes, as mentioned in the first post, |
Ok so the real issue is right now is the shipping version HCC with ROCm 1.2 does not support ASSEMBLY note this is still based CLANG 3.5 Frontend. But if you build from source with new CLANG 3.9 version of HCC you can ASSEMBLY to work. Can you print the version of the compiler for the two paths above? One thing just for FYI. We are going to Move to CLANG 3.9 version of the compiler in 1.3 in October. |
@gstoner You're already shipping CLANG 3.9.
|
Notice it pulls in |
Thank you, this helps so we can recreate the environment. 3.9 was on the bubble for inclusion in 1.2. |
I need a strong cup of coffee this morning or more sleep or both; we are using the 3.9 code generator of LLVM in ROCm 1.2, where the delta is in the HCC CLANG Front-end. It is currently version 3.5 of CLANG, we are in the process of moving it to 3.9 CLANG FE. We will try and recreate this issue and see what is going on. |
FYI, I successfully compiled and ran
So it is indeed possible to run the examples on stock ROCm 1.2. If you could update the |
Thanks for tracking this down, we will get this cleaned up. greg FYI, I successfully compiled and ran asm-kernel with the following: cd LLVM-AMDGPU-Assembler-Extra/examples/asm-kernel So it is indeed possible to run the examples on stock ROCm 1.2. If you could update the cmake files to compile the examples without any intervention (and presumably remove amdphdrs), it'd be great. — |
This repository seems to do two things. One is to host a now-unnecessary tool (?) and the other to host some samples of writing GCN LLVM assembly. I think it would be best to focus on the samples. It would be great if they could compile without LLVM sources and with the version of llvm-mc that ships with ROCm 1.2. (I get error
error: floating point operands not allowed with sext() modifier
when compilingexamples/asm-kernel/asm-kernel.s
)The text was updated successfully, but these errors were encountered: