failed to link against CUDA Driver API

30 views
Skip to first unread message

Aditya Bandla

unread,
Feb 29, 2024, 6:46:21 AM2/29/24
to UPC++
Hello,

I am new to UPCC & am trying to install it on a Cray EX HPC to ultimately install metahipmer.  I tried all the suggestions in the INSTALL.md file to enable GPU, but it always fails with the error "failed to link against CUDA Driver API"

Attached is the config.log file, any help would be much appreciated.

Thanks, Adi
config.log

Paul H. Hargrove

unread,
Feb 29, 2024, 1:45:38 PM2/29/24
to Aditya Bandla, UPC++
Adi,

The HPE Cray EX instructions in INSTALL.md include the following arguments to configure, which I don't see in your config.log:
         --with-cc=cc --with-cxx=CC --with-mpi-cc=cc
Can you please try again with those included?

It is also possible that you need to `module load cudatoolkit` or something like that (can be system specific).
Sending us the output of `module list` might help.

If there are public webpages documenting use of the particular system you are using, please point us at them and we might be able to understand more about this particular system's configuration.

-Paul

--
You received this message because you are subscribed to the Google Groups "UPC++" group.
To unsubscribe from this group and stop receiving emails from it, send an email to upcxx+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/upcxx/2d46b162-f202-44a6-bd38-e835956e3d20n%40googlegroups.com.


--
Paul H. Hargrove <PHHar...@lbl.gov>
Pronouns: he, him, his
Computer Languages & Systems Software (CLaSS) Group
Computer Science Department
Lawrence Berkeley National Laboratory

Aditya Bandla

unread,
Mar 1, 2024, 1:31:51 AM3/1/24
to UPC++
Thanks, Paul! I did try using the flags, but it still failed with the same error.

The output of module list is as follows:  
1) craype-x86-rome
4) craype/2.7.15
7) craype-network-ofi
10) cray-pals/1.1.6
13) cray-pmi/6.1.1
2) perftools-base/22.04.0
5) cray-dsmml/0.2.2
8) cray-mpich/8.1.15
11) PrgEnv-gnu/8.3.3
14) cuda/11.6.2
3) gcc/11.2.0
6) libfabric/1.11.0.4.125
9) cray-libsci/21.08.1.2
12) openmpi/4.1.5-gcc11
15) craype-accel-nvidia80

I navigated to the specific part of the configure file, throwing an error. It was unable to locate the cuda library -lcuda. I found those files under the stubs directory within the cuda library directory. Adding this to LD_LIBRARY_PATH did the trick. I was able to compile & install upcxx, thanks once again for the support.

Regards, Adi
Reply all
Reply to author
Forward
0 new messages