[prev in list] [next in list] [prev in thread] [next in thread] 

List:       llvm-dev
Subject:    [llvm-dev] Can I control HSA config generated by AMDGPU backend?
From:       Changdao Dong via llvm-dev <llvm-dev () lists ! llvm ! org>
Date:       2018-08-31 19:14:36
Message-ID: CA+V4pvmSqAfQi5kan6O4vBNTxQJDYx3j4Q0Lkv7rtP5MUMwWKg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I am using llvm clang to offline compile my opencl code into assembly. My
target is amdgpu--amdhsa. The assembly file generated by clang has config
of "enable_sgpr_dispatch_ptr = 1". Can I do something to turn that off in
the generated assembly file? Also, it seems that the order of kernel
arguments is in the reverse order of AMDCL2 convention. i.e. user argument
is placed at the first place while hidden arguments like
"HiddenGlobalOffsetX" are placed after user arguments. Can I change the
order of the arguments so that the first argument will be hidden arguments
before user arguments?

Thanks a lot!

-- 
DONG, Changdao

dongchangdao@gmail.com <cddong@cmu.edu>

[Attachment #5 (text/html)]

<div dir="ltr"><div>I am using llvm clang to offline compile my opencl code into \
assembly. My target is amdgpu--amdhsa. The assembly file generated by clang has \
config of &quot;enable_sgpr_dispatch_ptr = 1&quot;. Can I do something to turn that \
off in the generated assembly file? Also, it seems that the order of kernel arguments \
is in the reverse order of AMDCL2 convention. i.e. user argument is placed at the \
first place while hidden arguments like &quot;HiddenGlobalOffsetX&quot; are placed \
after user arguments. Can I change the order of the arguments so that the first \
argument will be hidden arguments before user \
arguments?</div><div><br></div><div>Thanks a lot!<br></div><div><br>-- <br><div \
dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">DONG, \
Changdao<br><br><a href="mailto:dongchangdao@gmail.com" \
target="_blank">dongchangdao@gmail.com</a><a href="mailto:cddong@cmu.edu" \
target="_blank"></a><br></div></div></div>


[Attachment #6 (text/plain)]

_______________________________________________
LLVM Developers mailing list
llvm-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic