Skip to content

Commit 8a48015

Browse files
committed
logging ops
1 parent b62698a commit 8a48015

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ jobs:
7474
source ~/.bashrc
7575
export PATH="/home/runner/.pixi/bin:/home/runner/.local/bin:$PATH"
7676
export CPLUS_INCLUDE_PATH="$GITHUB_WORKSPACE/.pixi/envs/default/targets/x86_64-linux/include"
77-
sudo cp -v "$GITHUB_WORKSPACE/assets/system/10_nvidia.json" /usr/share/glvnd/egl_vendor.d/
77+
#sudo cp -v "$GITHUB_WORKSPACE/assets/system/10_nvidia.json" /usr/share/glvnd/egl_vendor.d/
7878
pixi tree
79-
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH
79+
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
8080
env
8181
pixi run -vv test-ci
8282

pixi.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ b3d-pull = {cmd = "python b3d_pull.py -ow", cwd = "src/b3d/bucket_utils" }
6969

7070
rerun = "rerun --port 8812"
7171

72-
test = { cmd = "pytest -s --log-cli-level=DEBUG tests/dense_model_unit_tests/triangle_depth_posterior/test_triangle_depth_posterior.py", env = { XLA_PYTHON_CLIENT_PREALLOCATE = "false", XLA_PYTHON_CLIENT_ALLOCATOR = "platform", CPLUS_INCLUDE_PATH = "./targets/x86_64-linux/include", TORCH_CUDA_ARCH_LIST = "8.9", LD_LIBRARY_PATH = "/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH" } }
72+
test = { cmd = "pytest -s --log-cli-level=WARN tests/dense_model_unit_tests/triangle_depth_posterior/test_triangle_depth_posterior.py", env = { XLA_PYTHON_CLIENT_PREALLOCATE = "false", XLA_PYTHON_CLIENT_ALLOCATOR = "platform", CPLUS_INCLUDE_PATH = "./targets/x86_64-linux/include", TORCH_CUDA_ARCH_LIST = "8.9", LD_LIBRARY_PATH = "/usr/lib/x86_64-linux-gnu" } }
7373

7474
test-ci = { cmd = "pytest -s --log-cli-level=DEBUG tests/dense_model_unit_tests/triangle_depth_posterior/test_triangle_depth_posterior.py", env = { XLA_PYTHON_CLIENT_PREALLOCATE = "false", XLA_PYTHON_CLIENT_ALLOCATOR = "platform", TORCH_CUDA_ARCH_LIST = "8.9"} }
7575

src/b3d/renderer/nvdiffrast/jax/ops.py

+7
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,13 @@ def __init__(self, output_db=True, mode="automatic", device=None):
213213
else:
214214
with torch.cuda.device(device):
215215
cuda_device_idx = torch.cuda.current_device()
216+
217+
plugin = _get_plugin(gl=True)
218+
219+
logging.getLogger("nvdiffrast").warning(
220+
f"cuda_device_idx: {cuda_device_idx}, plugin: {plugin}, gl: {plugin.RasterizeGLStateWrapper}"
221+
)
222+
216223
self.cpp_wrapper = _get_plugin(gl=True).RasterizeGLStateWrapper(
217224
output_db, mode == "automatic", cuda_device_idx
218225
)

0 commit comments

Comments
 (0)