fix: change hardcoded compiler path

This commit is contained in:
Laurent FAINSIN 2023-04-06 09:31:16 +02:00
parent 0ff2e1d30f
commit 38da17d7d9
6 changed files with 7 additions and 7 deletions

View file

@ -19,8 +19,8 @@ mamba env create --file env.yml
Install PyTorchEMD by
```bash
cd metrics/PyTorchEMD
module load gcc
module load mpfr
module load gcc/11.2.0
module load mpfr/4.0.2
conda activate PVD
python setup.py install
cp build/**/emd_cuda.cpython-*-x86_64-linux-gnu.so .

View file

@ -10,7 +10,7 @@ setup(
]),
],
extra_cuda_cflags=['--compiler-bindir=/usr/bin/gcc-8'],
extra_cuda_cflags=['--compiler-bindir=/softs/gcc/11.2.0/bin/gcc'],
cmdclass={
'build_ext': BuildExtension
})

View file

@ -15,7 +15,7 @@ if not chamfer_found:
"/".join(os.path.abspath(__file__).split('/')[:-1] + ["chamfer3D.cu"]),
],
extra_cuda_cflags=['--compiler-bindir=/usr/bin/gcc-8'],)
extra_cuda_cflags=['--compiler-bindir=/softs/gcc/11.2.0/bin/gcc'],)
print("Loaded JIT 3D CUDA chamfer distance")
else:

View file

@ -10,7 +10,7 @@ setup(
]),
],
extra_cuda_cflags=['--compiler-bindir=/usr/bin/gcc-8'],
extra_cuda_cflags=['--compiler-bindir=/softs/gcc/11.2.0/bin/gcc'],
cmdclass={
'build_ext': BuildExtension
})

View file

@ -10,7 +10,7 @@ setup(
]),
],
extra_cuda_cflags=['--compiler-bindir=/usr/bin/gcc-8'],
extra_cuda_cflags=['--compiler-bindir=/softs/gcc/11.2.0/bin/gcc'],
cmdclass={
'build_ext': BuildExtension
})

View file

@ -5,7 +5,7 @@ from torch.utils.cpp_extension import load
_src_path = os.path.dirname(os.path.abspath(__file__))
_backend = load(name='_pvcnn_backend',
extra_cflags=['-O3', '-std=c++17'],
extra_cuda_cflags=['--compiler-bindir=/usr/bin/gcc-8'],
extra_cuda_cflags=['--compiler-bindir=/softs/gcc/11.2.0/bin/gcc'],
sources=[os.path.join(_src_path,'src', f) for f in [
'ball_query/ball_query.cpp',
'ball_query/ball_query.cu',