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

build error for RadBlastWave with Hypre v2.25 and CUDA 11.7 #2262

Closed
BenWibking opened this issue Aug 7, 2022 · 5 comments
Closed

build error for RadBlastWave with Hypre v2.25 and CUDA 11.7 #2262

BenWibking opened this issue Aug 7, 2022 · 5 comments
Assignees

Comments

@BenWibking
Copy link

BenWibking commented Aug 7, 2022

I can't build the RadBlastWave example with HYPRE 2.25.0 and CUDA 11.7.0. It fails at the final link step with undefined references to cublas functions. I've installed HYPRE as recommended in the Castro documentation.

/g/data/jh2/bw0729/hypre_v2.25.0/lib/libHYPRE.a(device_utils.obj): In function `hypre_DeviceDataDestroy(hypre_DeviceData*)':
tmpxft_002ba087_00000000-6_device_utils.cudafe1.cpp:(.text+0x26c4): undefined reference to `cublasDestroy_v2'
/g/data/jh2/bw0729/hypre_v2.25.0/lib/libHYPRE.a(device_utils.obj): In function `hypre_DeviceDataCublasHandle(hypre_DeviceData*)':
tmpxft_002ba087_00000000-6_device_utils.cudafe1.cpp:(.text+0x340e): undefined reference to `cublasCreate_v2'
tmpxft_002ba087_00000000-6_device_utils.cudafe1.cpp:(.text+0x342a): undefined reference to `cublasSetStream_v2'
/g/data/jh2/bw0729/hypre_v2.25.0/lib/libHYPRE.a(vector.obj): In function `hypre_SeqVectorScale':
tmpxft_002bae35_00000000-6_vector.cudafe1.cpp:(.text+0x604): undefined reference to `cublasDscal_v2'
/g/data/jh2/bw0729/hypre_v2.25.0/lib/libHYPRE.a(vector.obj): In function `hypre_SeqVectorAxpy':
tmpxft_002bae35_00000000-6_vector.cudafe1.cpp:(.text+0x6a6): undefined reference to `cublasDaxpy_v2'
/g/data/jh2/bw0729/hypre_v2.25.0/lib/libHYPRE.a(vector.obj): In function `hypre_SeqVectorInnerProd':
tmpxft_002bae35_00000000-6_vector.cudafe1.cpp:(.text+0x82d): undefined reference to `cublasDdot_v2'
collect2: error: ld returned 1 exit status
make: *** [../../../external/amrex/Tools/GNUMake/Make.rules:56: Castro3d.gnu.MPI.CUDA.ex] Error 1
@maxpkatz
Copy link
Member

Acknowledged, I was able to reproduce this on Perlmutter with Hypre v2.25.0 and the CUDA 11.7 from NVHPC.

@maxpkatz maxpkatz self-assigned this Aug 11, 2022
@maxpkatz
Copy link
Member

Can you try this again on Perlmutter? I suspect this was fixed by AMReX-Codes/amrex#2933

@BenWibking
Copy link
Author

I don't have access to Perlmutter, but tested it on NCSA Delta and it builds now. The amrex submodule checked out by default does not yet include this fix.

@zingale
Copy link
Member

zingale commented Sep 22, 2022

I'll update the submodule

@zingale
Copy link
Member

zingale commented Sep 22, 2022

#2275

@zingale zingale closed this as completed Sep 25, 2022
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

3 participants