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

Example compilation missing functions #5

Open
GBZH opened this issue Aug 4, 2022 · 2 comments
Open

Example compilation missing functions #5

GBZH opened this issue Aug 4, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@GBZH
Copy link

GBZH commented Aug 4, 2022

Hi,

Up to now I managed to compile H2Opus on a laptop running Ubuntu 22.04 LTS with Cuda 11.5 and with a Quadro RTX 5000 (16 GB). However, when trying to compile the examples, there are some missing functions or other bugs.

For eig:
/opt/nvidia/hpc_sdk/Linux_x86_64/22.5/cuda//bin/nvcc -I/home/quemener/local/h2opus/include -I/opt/intel/oneapi/mkl/include -I/include -I/home/quemener/local/kblas-gpu/include -I/home/quemener/local/magma-2.6.0/include -I//include -I/include -I/home/quemener/install/include -I/home/quemener/PETSc/petsc//include -I/home/quemener/PETSc/petsc/include -x cu -m64 -O3 -std=c++14 --expt-relaxed-constexpr -ccbin g++ -gencode arch=compute_75,code=sm_75 -Xcompiler -Wall -Xcompiler -fPIC -Xcompiler -fopenmp -Xcompiler -O3 -Xcompiler -std=c++14 -Xcompiler -pthread -Xcompiler -DH2OPUS_PROFILING_ENABLED -o obj/test_eig_slepc.o -c test_eig_slepc.cpp

test_eig_slepc.cpp(64): error: identifier "MatCreateH2OpusFromKernel" is undefined
test_eig_slepc.cpp(72): error: identifier "MatH2OpusSetNativeMult" is undefined

For hara:
/opt/nvidia/hpc_sdk/Linux_x86_64/22.5/cuda//bin/nvcc -I/home/quemener/local/h2opus/include -I/opt/intel/oneapi/mkl/include -I/include -I/home/quemener/local/kblas-gpu/include -I/home/quemener/local/magma-2.6.0/include -x cu -m64 -O3 -std=c++14 --expt-relaxed-constexpr -ccbin g++ -gencode arch=compute_75,code=sm_75 -Xcompiler -Wall -Xcompiler -fPIC -Xcompiler -fopenmp -Xcompiler -O3 -Xcompiler -std=c++14 -Xcompiler -pthread -Xcompiler -DH2OPUS_PROFILING_ENABLED -o obj/test_hara.o -c test_hara.cpp
test_hara.cpp(189): error: identifier "ReconstructSampler" is undefined

test_hara.cpp(189): error: identifier "gpu_reconstruct_sampler" is undefined

For spatialstatistics:
spatial_statistics.cpp(73): error: identifier "MatCreateH2OpusFromKernel" is undefined
spatial_statistics.cpp(95): error: identifier "MatH2OpusCompress" is undefined
spatial_statistics.cpp(125): error: identifier "MatH2OpusSetNativeMult" is undefined

For tlr:
$ test_tlr
Tile Size = 512. ARA Block size = 32
Construction threshold = 1.000000e-06. Cholesky threshold = 1.000000e-06. Diagonal shift s = 0.000000e+00
Erreur de segmentation (core dumped)

Where could I get the missing functions which are not included in the repository files ?

Thanks a lot for any help,

Gilles

@GBZH GBZH changed the title Example compilation missing files Example compilation missing functions Aug 4, 2022
@stefanozampini
Copy link
Contributor

stefanozampini commented Oct 9, 2022

@GBZH Sorry for taking so long to respond. I had notifications turned down for some reason. Here are the fixes to the issue you reported. Let me know if they work for you, and thanks for reporting.

The missing PETSc API needs PETSc compiled with h2opus support since the MATH2OPUS type is defined in the PETSc source code.

https://github.com/ecrc/h2opus/tree/stefanozampini/fix-new-petsc

@stefanozampini stefanozampini self-assigned this Oct 9, 2022
@stefanozampini stefanozampini added the bug Something isn't working label Oct 9, 2022
@stefanozampini
Copy link
Contributor

Branch deleted and merged #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants