microsoft / microsoft/TRELLIS

I installed torch, CUDA, CUDATookit in conda environment, but when I click build it gives error: fatal error: cusparse.h: No such file or directory

Open
#195 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
13.7k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

....
/home/csnc/miniconda3/envs/trellis/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContextLight.h:7:10: fatal error: cusparse.h: No such file or directory
7 | #include <cusparse.h>
| ^~~~~~~~~~~~
compilation terminated.
[8/9] c++ -MMD -MF texture.o.d -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -isystem /home/csnc/miniconda3/envs/trellis/lib/python3.10/site-packages/torch/include -isystem /home/csnc/miniconda3/envs/trellis/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /home/csnc/miniconda3/envs/trellis/lib/python3.10/site-packages/torch/include/TH -isystem /home/csnc/miniconda3/envs/trellis/lib/python3.10/site-packages/torch/include/THC -isystem /home/csnc/miniconda3/envs/trellis/include -isystem /home/csnc/miniconda3/envs/trellis/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -DNVDR_TORCH -c /home/csnc/miniconda3/envs/trellis/lib/python3.10/site-packages/nvdiffrast/common/texture.cpp -o texture.o
FAILED: texture.o
c++ -MMD -MF texture.o.d -DTORCH_EXTENSION_NAME=nvdiffrast_plugin -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="_gcc" -DPYBIND11_STDLIB="_libstdcpp" -DPYBIND11_BUILD_ABI="_cxxabi1011" -isystem /home/csnc/miniconda3/envs/trellis/lib/python3.10/site-packages/torch/include -isystem /home/csnc/miniconda3/envs/trellis/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /home/csnc/miniconda3/envs/trellis/lib/python3.10/site-packages/torch/include/TH -isystem /home/csnc/miniconda3/envs/trellis/lib/python3.10/site-packages/torch/include/THC -isystem /home/csnc/miniconda3/envs/trellis/include -isystem /home/csnc/miniconda3/envs/trellis/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -DNVDR_TORCH -c /home/csnc/miniconda3/envs/trellis/lib/python3.10/site-packages/nvdiffrast/common/texture.cpp -o texture.o
In file included from /home/csnc/miniconda3/envs/trellis/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContext.h:3,
from /home/csnc/miniconda3/envs/trellis/lib/python3.10/site-packages/nvdiffrast/common/framework.h:37,
from /home/csnc/miniconda3/envs/trellis/lib/python3.10/site-packages/nvdiffrast/common/texture.cpp:9:
/home/csnc/miniconda3/envs/trellis/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContextLight.h:7:10: fatal error: cusparse.h: No such file or directory
7 | #include <cusparse.h>
| ^~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report points to the nvdiffrast CUDA extension build and the installed PyTorch and conda paths, rather than to a repository file. Start by checking the project’s documented environment and build requirements against this failing command; done means identifying a reproducible, documented setup or confirming a repository-side fix for the missing header.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.