Skip to content

Global octopus with cuda: configure error

configure:8800: checking for cuInit in -lcuda
configure:8823: /home/mlang/mpsd-software-root/develop-bookworm/cascadelake/spack/opt/spack/linux-debian12-cascadelake/gcc-13.2.0/openmpi-4.1.6-lhxlb6dnlwrdtuttfyjejhsgcegssyxy/bin/mpicc -o conftest -I/usr/includ
e -O2 -fallow-argument-mismatch -fallow-invalid-boz   conftest.c -lcuda  -lcudart >&5
cc1: warning: command-line option '-fallow-argument-mismatch' is valid for Fortran but not for C
cc1: warning: command-line option '-fallow-invalid-boz' is valid for Fortran but not for C
/usr/bin/ld: cannot find -lcuda: No such file or directory
collect2: error: ld returned 1 exit status
configure:8823: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Octopus"
| #define PACKAGE_TARNAME "octopus"
| #define PACKAGE_VERSION "14.1"
| #define PACKAGE_STRING "Octopus 14.1"
| #define PACKAGE_BUGREPORT "octopus-devel@tddft.org"
| #define PACKAGE_URL ""
| #define PACKAGE "octopus"
| #define VERSION "14.1"
| #define restrict __restrict__
| #define HAVE_BUILTIN_PREFETCH 1
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_SYS_TIME_H 1
| #define STDC_HEADERS 1
| #define HAVE_ALLOCA_H 1
| #define HAVE_ALLOCA 1
| #define TIME_WITH_SYS_TIME 1
| #define TLS_SPECIFIER __thread
| #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
| #define HAVE_M128D 1
| #define HAVE_FMA3 1
| #define HAVE_M256D 1
| #define HAVE_M512D 1
| #define OCT_ARCH x86_64
| #define HAVE_VEC 1
| #define HAVE_CUDA 1
| /* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| char cuInit ();
| int
| main (void)
| {
| return cuInit ();
|   ;
|   return 0;
| }
configure:8833: result: no