https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92322
Bug ID: 92322
Summary: Compilation (of gdrcopy) in cloud environments
Product: gcc
Version: 8.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: afernandez at odyhpc dot com
Target Milestone: ---
Compilation (of gdrcopy) in cloud environments
Hello,
I've been trying to compile gdrcopy (https://github.com/NVIDIA/gdrcopy) in
cloud environments but keep running into the same issue. The compilation is
pretty standard:
cd ~/gdrcopy
sudo chmod +x config_arch
make CUDA=/usr/local/cuda-10.1 all
but the error message reads:
GDRAPI_ARCH=X86
cd src/gdrdrv && \
make
make[1]: Entering directory `/home/ody/gdrcopy/src/gdrdrv'
Picking NVIDIA driver sources from
NVIDIA_SRC_DIR=/usr/src/nvidia-418.87.00/nvidia. If that does not meet your
expectation, you might have a stale driver still around and that might cause
problems.
make[2]: Entering directory `/usr/src/kernels/3.10.0-1062.4.1.el7.x86_64'
arch/x86/Makefile:166: *** CONFIG_RETPOLINE=y, but not supported by the
compiler. Compiler update recommended.. Stop.
make[2]: Leaving directory `/usr/src/kernels/3.10.0-1062.4.1.el7.x86_64'
make[1]: *** [module] Error 2
make[1]: Leaving directory `/home/ody/gdrcopy/src/gdrdrv'
make: *** [driver] Error 2
The compiler version is 8.3.0 (began the installation with 9.2.0 but the CUDA
toolkit doesn't take it yet) where RETPOLINE is obviously fine. I opened a case
with the gdrcopy team and the full thread can be read at
https://github.com/NVIDIA/gdrcopy/issues/93. My conclusion then, and now
because the problem has resurfaced with Azure, is that the hypervisor is either
interfering or the virtualization is preventing something from working
together.
Has anyone seen any similar issue or has any suggestion on what to try?
Thanks.