ginu jacob via llvm-dev
2016-Jun-02 05:18 UTC
[llvm-dev] PTX generation from CUDA file for compute capability 1.0 (sm_10)
Hello, When generating the PTX output from CUDA file(.cu file), the minimum target that is accepted by LLVM is sm_20. But I have a specific requirement to generate PTX output for compute capability 1.0 (sm_10). Is there any previous version of LLVM supporting this? Thank you, Ginu -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160602/77d9f743/attachment.html>
Eric Christopher via llvm-dev
2016-Jun-02 06:15 UTC
[llvm-dev] PTX generation from CUDA file for compute capability 1.0 (sm_10)
Hi Ginu, I don't believe so, no. Art and Justin would know best here I think if there were or how difficult it would be to target that far back. -eric On Wed, Jun 1, 2016 at 10:18 PM ginu jacob via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Hello, > > When generating the PTX output from CUDA file(.cu file), the minimum > target that is accepted by LLVM is sm_20. But I have a specific requirement > to generate PTX output for compute capability 1.0 (sm_10). Is there any > previous version of LLVM supporting this? > > Thank you, > Ginu > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160602/4b5de403/attachment.html>
C Bergström via llvm-dev
2016-Jun-02 06:36 UTC
[llvm-dev] PTX generation from CUDA file for compute capability 1.0 (sm_10)
What happens if you hack change llvm to accept sm_10? Do you get an error somewhere further down the pipeline? sm_10 is pretty old hardware - Why the strong dependency on this? On Thu, Jun 2, 2016 at 1:18 PM, ginu jacob via llvm-dev <llvm-dev at lists.llvm.org> wrote:> Hello, > > When generating the PTX output from CUDA file(.cu file), the minimum target > that is accepted by LLVM is sm_20. But I have a specific requirement to > generate PTX output for compute capability 1.0 (sm_10). Is there any > previous version of LLVM supporting this? > > Thank you, > Ginu > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >
ginu jacob via llvm-dev
2016-Jun-02 07:23 UTC
[llvm-dev] PTX generation from CUDA file for compute capability 1.0 (sm_10)
Hello Bergström/Eric, Thanks for the reply. The G80(sm_10) architecture was ported on FPGA by a group of researchers (http://www.ecs.umass.edu/ece/tessier/andryc-fpt13.pdf). Our group have some further research interest on this work. I was working on modifying the Clang-LLVM for a couple of months and achieved the required changes. But Clang-LLVM is only allowing me to generate PTX for sm_20, sm_30 etc.While trying to generate PTX for sm_10, it gave *error: unknown target CPU 'sm_10'* *fatal error: cannot open file '/tmp/shared-395893.s': No such file or directory1 error generated.* The compilation command used is: clang -Xclang -I$LIBCLC/include/generic -I$LIBCLC/include/ptx -Dcl_clang_storage_class_specifiers -O3 CudaSource.cu -S -o PtxOutput.ptx --cuda-gpu-arch=sm_10 Is there any chance that this error being generated from CUDA runtime alone since I am using CUDA 7.5 which does not support sm_10. If there is any chance that the error is isolated from LLVM and is only due to CUDA, i have some hope to use a lower CUDA version. Please let me know your suggestions. Thank you, Ginu On Thu, Jun 2, 2016 at 2:36 PM, C Bergström <cbergstrom at pathscale.com> wrote:> What happens if you hack change llvm to accept sm_10? Do you get an > error somewhere further down the pipeline? > > sm_10 is pretty old hardware - Why the strong dependency on this? > > On Thu, Jun 2, 2016 at 1:18 PM, ginu jacob via llvm-dev > <llvm-dev at lists.llvm.org> wrote: > > Hello, > > > > When generating the PTX output from CUDA file(.cu file), the minimum > target > > that is accepted by LLVM is sm_20. But I have a specific requirement to > > generate PTX output for compute capability 1.0 (sm_10). Is there any > > previous version of LLVM supporting this? > > > > Thank you, > > Ginu > > > > _______________________________________________ > > LLVM Developers mailing list > > llvm-dev at lists.llvm.org > > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160602/7a02e3e1/attachment.html>
Artem Belevich via llvm-dev
2016-Jun-02 17:07 UTC
[llvm-dev] PTX generation from CUDA file for compute capability 1.0 (sm_10)
You may be out of luck. http://reviews.llvm.org/rL178417 committed in 2013 says: "[NVPTX] Remove support for SM < 2.0. This was never fully supported anyway." --Artem On Wed, Jun 1, 2016 at 10:18 PM, ginu jacob via llvm-dev < llvm-dev at lists.llvm.org> wrote:> Hello, > > When generating the PTX output from CUDA file(.cu file), the minimum > target that is accepted by LLVM is sm_20. But I have a specific requirement > to generate PTX output for compute capability 1.0 (sm_10). Is there any > previous version of LLVM supporting this? > > Thank you, > Ginu > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-- --Artem Belevich -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160602/18fc03b6/attachment.html>
ginu jacob via llvm-dev
2016-Jun-06 01:04 UTC
[llvm-dev] PTX generation from CUDA file for compute capability 1.0 (sm_10)
Hello Artem, Thanks for the mail. I think I may need to dig down a little bit to see which part is supported and try out some way to make the compilation happen. Best regards, Ginu On Fri, Jun 3, 2016 at 1:07 AM, Artem Belevich <tra at google.com> wrote:> You may be out of luck. http://reviews.llvm.org/rL178417 committed in > 2013 says: > "[NVPTX] Remove support for SM < 2.0. This was never fully supported > anyway." > > --Artem > > On Wed, Jun 1, 2016 at 10:18 PM, ginu jacob via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> Hello, >> >> When generating the PTX output from CUDA file(.cu file), the minimum >> target that is accepted by LLVM is sm_20. But I have a specific requirement >> to generate PTX output for compute capability 1.0 (sm_10). Is there any >> previous version of LLVM supporting this? >> >> Thank you, >> Ginu >> >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >> >> > > > -- > --Artem Belevich >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160606/3ffdf4b2/attachment.html>
Maybe Matching Threads
- PTX generation from CUDA file for compute capability 1.0 (sm_10)
- Missing R.h
- [LLVMdev] [NVPTX] llc -march=nvptx64 -mcpu=sm_20 generates invalid zero align for device function params
- [LLVMdev] UNREACHABLE executed! error while trying to generate PTX
- [LLVMdev] [NVPTX] Backend cannot handle array-of-arrays constant