Skip to content

Commit 38664dd

Browse files
fix: build setup and JIT loading for Blackwell architecture (#177)
* fix: add --no-build-isolation to pip install because of blackwell architecture * fix: refactor JIT module loading to explicitly return modules (needed for blackwell architecture) * fix: missing --no-build-isolation flag --------- Co-authored-by: Qi Wu <wilson.over.cloud@gmail.com>
1 parent 5014784 commit 38664dd

File tree

7 files changed

+9
-10
lines changed

7 files changed

+9
-10
lines changed

install_env.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ conda install -c conda-forge mesa-libgl-devel-cos7-x86_64 -y
173173

174174
# Initialize git submodules and install Python requirements
175175
git submodule update --init --recursive
176-
pip install -r requirements.txt
177-
pip install -e .
176+
pip install --no-build-isolation -r requirements.txt
177+
pip install --no-build-isolation -e .
178178

179179
echo "Setup completed successfully!"

threedgrt_tracer/setup_3dgrt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ def to_cpp_bool(value):
8484
extra_cflags=cflags,
8585
extra_cuda_cflags=cuda_flags,
8686
extra_include_paths=include_paths,
87-
)
87+
)

threedgrut/gui/setup_gui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ def setup_gui():
4141
extra_cflags=cflags,
4242
extra_cuda_cflags=cuda_cflags,
4343
extra_include_paths=include_paths,
44-
)
44+
)

threedgrut/strategy/mcmc.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@ def load_mcmc_plugin():
3939
if _mcmc_plugin is None:
4040
try:
4141
from . import lib_mcmc_cc as gaussian_mcmc
42+
_mcmc_plugin = gaussian_mcmc # type: ignore
4243
except ImportError:
4344
from threedgrut.strategy.src.setup_mcmc import setup_mcmc
44-
45-
gaussian_mcmc = setup_mcmc()
46-
_mcmc_plugin = gaussian_mcmc
45+
_mcmc_plugin = setup_mcmc()
4746

4847

4948
class MCMCStrategy(BaseStrategy):

threedgrut/strategy/src/setup_mcmc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ def setup_mcmc():
5656
extra_cuda_cflags=cuda_cflags,
5757
extra_include_paths=include_paths,
5858
build_directory=build_dir,
59-
)
59+
)

threedgrut_playground/setup_playground.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ def to_cpp_bool(value):
8787
name="libplayground_cc",
8888
sources=source_paths,
8989
extra_include_paths=include_paths,
90-
)
90+
)

threedgut_tracer/setup_3dgut.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,4 @@ def to_cpp_bool(value):
142142
extra_cuda_cflags=cuda_cflags,
143143
extra_include_paths=include_paths,
144144
build_directory=build_dir,
145-
)
145+
)

0 commit comments

Comments
 (0)