help build GCC + OpenMP + GPU (nvptx)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to use this script
to build GCC with nvptx support,
to use OpenMP 4.5 on GPUs:

https://kristerw.blogspot.com/2017/04/building-gcc-with-support-for-nvidia.html

I tried with 7.2 and 8.2 GCC releases.
Both times I get this error, e.g. for 8.2:

/bin/sh ../../../gcc/libgcc/../mkinstalldirs /mnt/storage/home/mexas/offload/install/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include
/usr/bin/install -c -m 644 unwind.h /mnt/storage/home/mexas/offload/install/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include
/bin/sh ../../../gcc/libgcc/../mkinstalldirs /mnt/storage/home/mexas/offload/install/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include
/usr/bin/install -c -m 644 ../../../gcc/libgcc/gcov.h /mnt/storage/home/mexas/offload/install/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include
make[2]: Leaving directory `/mnt/storage/home/mexas/offload/wrk/build-host-gcc/x86_64-pc-linux-gnu/libgcc'
/bin/sh: line 3: cd: x86_64-pc-linux-gnu/libstdc++-v3: No such file or directory

So the script did build nvptx GCC,
but choked on host GCC.

$ ls ~/offload/install/bin/
c++     gcc-ranlib     nvptx-none-as                             x86_64-pc-linux-gnu-gcc
cpp     gcov           nvptx-none-ld                             x86_64-pc-linux-gnu-gcc-8.2.0
g++     gcov-dump      nvptx-none-ranlib                         x86_64-pc-linux-gnu-gcc-ar
gcc     gcov-tool      x86_64-pc-linux-gnu-accel-nvptx-none-gcc  x86_64-pc-linux-gnu-gcc-nm
gcc-ar  gfortran       x86_64-pc-linux-gnu-c++                   x86_64-pc-linux-gnu-gcc-ranlib
gcc-nm  nvptx-none-ar  x86_64-pc-linux-gnu-g++                   x86_64-pc-linux-gnu-gfortran

Please help

Thanks

Anton



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux