MPI_Wtime() implementation
1"""MPI_Wtime() implementation""" 2 3import ctypes 4 5import numba 6 7from numba_mpi.common import libmpi 8 9_MPI_Wtime = libmpi.MPI_Wtime 10_MPI_Wtime.restype = ctypes.c_double 11_MPI_Wtime.argtypes = [] 12 13 14@numba.njit() 15def wtime(): 16 """wrapper for MPI_Wtime()""" 17 return _MPI_Wtime()
15@numba.njit() 16def wtime(): 17 """wrapper for MPI_Wtime()""" 18 return _MPI_Wtime()
wrapper for MPI_Wtime()