[Mvapich-discuss] osu-micro-benchmarks-7.5-1 error with NVIDIA

Amit Ruhela aruhela at tacc.utexas.edu
Mon Sep 29 09:41:16 EDT 2025


Hi Dr. Panda,

I’m encountering the following errors while compiling OMB 7.5.1 with OpenMPI 5.0.8 and CUDA 13.0 on the Vista machine. I don’t think this issue is machine-specific, but it might be related to the latest CUDA version. Do you have any suggestions on how to resolve these errors?

CC=mpicc CXX=mpicxx ./configure --prefix=$PWD/build  --enable-cuda --enable-ncclomb --with-nccl=$TACC_NCCL_DIR --with-cuda=$TACC_CUDA_DIR --enable-mpi4=0

In file included from ../../../util/osu_util_mpi.h:12,
                 from ../../../util/osu_util_mpi.c:11:
../../../util/osu_util_mpi.c: In function 'prefetch_data':
../../../util/osu_util_mpi.c:3386:50: error: incompatible type for argument 3 of 'cudaMemPrefetchAsync'
 3386 |     CUDA_CHECK(cudaMemPrefetchAsync(buf, length, devid, um_stream));
      |                                                  ^~~~~
      |                                                  |
      |                                                  int
../../../util/osu_util.h:136:22: note: in definition of macro 'CUDA_CHECK'
  136 |         int errno = (stmt);                                                    \
      |                      ^~~~
In file included from /home1/apps/nvidia/Linux_aarch64/25.9/cuda/13.0/include/cuda_runtime.h:95,
                 from ../../../util/osu_util.h:44:
/home1/apps/nvidia/Linux_aarch64/25.9/cuda/13.0/include/cuda_runtime_api.h:7152:117: note: expected 'struct cudaMemLocation' but argument is of type 'int'
 7152 | extern __host__ cudaError_t CUDARTAPI cudaMemPrefetchAsync(const void *devPtr, size_t count, struct cudaMemLocation location, unsigned int flags, cudaStream_t stream __dv(0));
      |                                                                                              ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
../../../util/osu_util_mpi.c:3386:57: warning: passing argument 4 of 'cudaMemPrefetchAsync' makes integer from pointer without a cast [-Wint-conversion]
 3386 |     CUDA_CHECK(cudaMemPrefetchAsync(buf, length, devid, um_stream));
      |                                                         ^~~~~~~~~
      |                                                         |
      |                                                         cudaStream_t {aka struct CUstream_st *}
../../../util/osu_util.h:136:22: note: in definition of macro 'CUDA_CHECK'
  136 |         int errno = (stmt);                                                    \
      |                      ^~~~
/home1/apps/nvidia/Linux_aarch64/25.9/cuda/13.0/include/cuda_runtime_api.h:7152:140: note: expected 'unsigned int' but argument is of type 'cudaStream_t' {aka 'struct CUstream_st *'}
 7152 | extern __host__ cudaError_t CUDARTAPI cudaMemPrefetchAsync(const void *devPtr, size_t count, struct cudaMemLocation location, unsigned int flags, cudaStream_t stream __dv(0));
      |                                                                                                                               ~~~~~~~~~~~~~^~~~~
../../../util/osu_util_mpi.c:3386:16: error: too few arguments to function 'cudaMemPrefetchAsync'
 3386 |     CUDA_CHECK(cudaMemPrefetchAsync(buf, length, devid, um_stream));
      |                ^~~~~~~~~~~~~~~~~~~~
../../../util/osu_util.h:136:22: note: in definition of macro 'CUDA_CHECK'
  136 |         int errno = (stmt);                                                    \
      |                      ^~~~
/home1/apps/nvidia/Linux_aarch64/25.9/cuda/13.0/include/cuda_runtime_api.h:7152:39: note: declared here
 7152 | extern __host__ cudaError_t CUDARTAPI cudaMemPrefetchAsync(const void *devPtr, size_t count, struct cudaMemLocation location, unsigned int flags, cudaStream_t stream __dv(0));
      |                                       ^~~~~~~~~~~~~~~~~~~~
make[4]: *** [Makefile:621: ../../../util/osu_util_mpi.o] Error 1



Thanks,


Amit Ruhela, Ph.D.

HPC Software Tools Group

Texas Advanced Computing Center

The University of Texas at Austin

Email: aruhela at tacc.utexas.edu<mailto:aruhela at tacc.utexas.edu>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osu.edu/pipermail/mvapich-discuss/attachments/20250929/ac5cf275/attachment-0001.html>


More information about the Mvapich-discuss mailing list