Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SuiteSparse::CHOLMOD but the target was not found #101

Open
ioir123ju opened this issue Sep 10, 2024 · 2 comments
Open

SuiteSparse::CHOLMOD but the target was not found #101

ioir123ju opened this issue Sep 10, 2024 · 2 comments

Comments

@ioir123ju
Copy link

ioir123ju commented Sep 10, 2024

I use command:
cmake .. -GNinja -DCMAKE_CUDA_ARCHITECTURES=75 -DSuiteSparse_CHOLMOD_LIBRARY="/usr/lib/x86_64-linux-gnu/libcholmod.so" -DSuiteSparse_CHOLMOD_INCLUDE_DIR="/usr/include/suitesparse"
And I'm sure I have /usr/lib/x86_64-linux-gnu/libcholmod.so and /usr/include/suitesparse.
image

@ichsan2895
Copy link

ichsan2895 commented Sep 10, 2024

How about using this command only?

pip install cmake==3.28.4

cd path/to/glomap

mkdir build

cd build

cmake .. -GNinja -DCMAKE_CUDA_ARCHITECTURES=75

I had success for it without explicitly pointing -DSuiteSparse_CHOLMOD_LIBRARY="/usr/lib/x86_64-linux-gnu/libcholmod.so" -DSuiteSparse_CHOLMOD_INCLUDE_DIR="/usr/include/suitesparse"

It automatically stated in glomap/build/CMakeCache.txt

//Path to a file.
SuiteSparse_CHOLMOD_INCLUDE_DIR:PATH=/usr/include/suitesparse

//Path to a library.
SuiteSparse_CHOLMOD_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libcholmod.so

@ioir123ju
Copy link
Author

ioir123ju commented Sep 11, 2024

只使用这个命令怎么样?

pip install cmake==3.28.4

cd path/to/glomap

mkdir build

cd build

cmake .. -GNinja -DCMAKE_CUDA_ARCHITECTURES=75

我没有明确指出就成功了-DSuiteSparse_CHOLMOD_LIBRARY="/usr/lib/x86_64-linux-gnu/libcholmod.so" -DSuiteSparse_CHOLMOD_INCLUDE_DIR="/usr/include/suitesparse"

它自动在glomap/build/CMakeCache.txt

//Path to a file.
SuiteSparse_CHOLMOD_INCLUDE_DIR:PATH=/usr/include/suitesparse

//Path to a library.
SuiteSparse_CHOLMOD_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libcholmod.so

Yes, I saw suitesparse in glomap/build/CMakeCache.txt, but "cmake .. -GNinja -DCMAKE_CUDA_ARCHITECTURES=75 "
still reporting same errors. My cmake version is 3.30.1.
It is worth mentioning that the initial version of Glomap compiled without any issues.
I use ${SuiteSparse_CHOLMOD_LIBRARY} replace SuiteSparse::CHOLMOD is work.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants