Running sudo meson build gives an error saying it cannot find nvcc.
I then pointed meson.build manually to the location of nvcc in the meson.build file and now it says nvcc is found and then gives an error.
I’m trying to build the example applications that come with DOCA.
The Meson build system
Version: 0.61.2
Source dir: /opt/mellanox/doca/applications
Build dir: /opt/mellanox/doca/applications/build
Build type: native build
Program cat found: YES (/usr/bin/cat)
Project name: DOCA_APPLICATIONS
Project version: 2.2.0080
C compiler for the host machine: cc (gcc 11.4.0 "cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
C linker for the host machine: cc ld.bfd 2.38
C++ compiler for the host machine: c++ (gcc 11.4.0 "c++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0")
C++ linker for the host machine: c++ ld.bfd 2.38
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program /usr/local/cuda-12.2/bin/nvcc found: YES (/usr/local/cuda-12.2/bin/nvcc)
meson.build:33: WARNING: add_languages is missing native:, assuming languages are wanted for both host and build.
Compiler for language cuda for the build machine not found.
meson.build:33:1: ERROR: Could not find suitable CUDA compiler: "nvcc"