This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hi Thomas,
thank you very much for your help. I applied the patch to nvptx.c
and was able to build everything. The compiler works for my small
accelerator programs.
loki nvptx 147 diff nvptx.c nvptx.c.orig
1878,1881c1878
< bool function = SYMBOL_REF_DECL (sym)
< && (TREE_CODE (SYMBOL_REF_DECL (sym)) == FUNCTION_DECL);
< if (!function)
< fprintf (asm_out_file, "generic(");
---
> fprintf (asm_out_file, "generic(");
1883,1886c1880
< if (!function)
< fprintf (asm_out_file, val ? ") + " : ")");
< else if (val)
< fprintf (asm_out_file, " + ");
---
> fprintf (asm_out_file, val ? ") + " : ")");
loki nvptx 148
I'm not sure if I used CUDA 8 or CUDA 9 to build gcc-7.2.0, but I
assume it was already CUDA 9.
loki nvptx 148 ls -ld /usr/local/gcc-7.2.0/ /usr/local/cuda
lrwxrwxrwx 1 root root 8 Sep 27 09:15 /usr/local/cuda -> cuda-9.0
drwxr-xr-x 9 root root 4096 Nov 2 12:07 /usr/local/gcc-7.2.0/
loki nvptx 149
Thank you very much once more
Siegmar
Am 24.02.2018 um 23:18 schrieb Thomas Schwinge:
Hi! On Sat, 24 Feb 2018 17:20:13 +0100, Siegmar Gross <siegmar.gross@informatik.hs-fulda.de> wrote:today I tried to install gcc-7.3.0 with accelerator supportThanks for giving that a try and reporting back!on my "SUSE Linux Enterprise Server 12.3 (x86_64)" with gcc-6.4.0. I used the following commands to download and build everything.Thanks for providing these (but I have not yet reviewed them in detail, because the problem might be solved already, see below).'../../../../../../gcc-7.3.0/newlib/libc/search/'`hash_func.c ptxas lib_a-hash_func.o, line 11; fatal : Invalid initial value expression ptxas fatal : Ptx assembly aborted due to errors nvptx-as: ptxas returned 255 exit status Makefile:413: recipe for target 'lib_a-hash_func.o' failed make[8]: *** [lib_a-hash_func.o] Error 1Am I right guessing that you're using CUDA 9? Then it'd most likely be the issue discussed in <https://gcc.gnu.org/PR83790> "Update nvptx target to work with cuda 9". By now, there has a fix been committed to GCC trunk, and I assume the same would also work on earlier GCC releases/branches.I was able to build that part for gcc-7.2.0 with the same commands.Interesting. Or, maybe you've not been using CUDA 9 in that build? Grüße Thomas
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |