Skip to content

Commit 3f6f18e

Browse files
committed
fix(env): fix some potiential env issue later
* add some notes
1 parent 0ab8559 commit 3f6f18e

4 files changed

Lines changed: 27 additions & 14 deletions

File tree

assets/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ python -c "import torch; print(torch.__version__); print(torch.cuda.is_available
8080
python -c "import lightning.pytorch as pl; print(pl.__version__)"
8181
python -c "from assets.cuda.mmcv import Voxelization, DynamicScatter;print('successfully import on our lite mmcv package')"
8282
python -c "from assets.cuda.chamfer3D import nnChamferDis;print('successfully import on our chamfer3D package')"
83+
python -c "from av2.utils.io import read_feather; print('av2 package ok')"
8384
```
8485

8586

assets/cuda/chamfer3D/setup.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
from setuptools import setup
22
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
33

4+
extra_compile_args = {
5+
'cxx': ['-DCCCL_IGNORE_DEPRECATED_CUDA_BELOW_12'],
6+
'nvcc': ['-DCCCL_IGNORE_DEPRECATED_CUDA_BELOW_12'],
7+
}
8+
49
setup(
510
name='chamfer3D',
611
ext_modules=[
7-
CUDAExtension('chamfer3D', [
8-
"/".join(__file__.split('/')[:-1] + ['chamfer3D_cuda.cpp']), # must named as xxx_cuda.cpp
9-
"/".join(__file__.split('/')[:-1] + ['chamfer3D.cu']),
10-
]),
12+
CUDAExtension(
13+
name='chamfer3D',
14+
sources=[
15+
"/".join(__file__.split('/')[:-1] + ['chamfer3D_cuda.cpp']), # must named as xxx_cuda.cpp
16+
"/".join(__file__.split('/')[:-1] + ['chamfer3D.cu']),
17+
],
18+
extra_compile_args=extra_compile_args
19+
),
1120
],
1221
cmdclass={
1322
'build_ext': BuildExtension
1423
},
15-
version='1.0.1')
24+
version='1.0.2'
25+
)

assets/cuda/mmcv/setup.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@
33
from setuptools import find_packages, setup
44
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
55

6+
extra_compile_args = {
7+
'cxx': ['-DCCCL_IGNORE_DEPRECATED_CUDA_BELOW_12'],
8+
'nvcc': ['-DCCCL_IGNORE_DEPRECATED_CUDA_BELOW_12'],
9+
}
10+
11+
612
setup(
713
name='mmcv',
8-
version='1.0.1',
14+
version='1.0.2',
915
ext_modules=[
1016
CUDAExtension(
1117
name='mmcv',
@@ -18,14 +24,8 @@
1824
"/".join(__file__.split("/")[:-1] + ["pybind.cpp"]),
1925

2026
],
21-
# extra_compile_args={
22-
# 'cxx': ['-std=c++17'],
23-
# 'nvcc': ['-std=c++17',
24-
# '-D__CUDA_NO_HALF_OPERATORS__',
25-
# '-D__CUDA_NO_HALF_CONVERSIONS__',
26-
# '-D__CUDA_NO_HALF2_OPERATORS__',
27-
# ],}
28-
),
27+
extra_compile_args=extra_compile_args
28+
),
2929
],
3030
cmdclass={'build_ext': BuildExtension},
3131

environment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ dependencies:
3434
- assets/cuda/chamfer3D
3535
- assets/cuda/mmcv
3636
- open3d==0.18.0
37+
# - opencv-python-headless==4.9.0.80 # for av2 if there is any on cv2....
38+
- av==14.0.1 # need to specific this one otherwise av2 will have error
3739
- av2==0.3.1
3840
- spconv-cu118==2.3.6
3941
- numpy==1.26.4

0 commit comments

Comments
 (0)