[Openmp-commits] [openmp] 8a181f4 - [OpenMP][Obvious] Fix incompatbile function prototype causing failures

Joseph Huber via Openmp-commits openmp-commits at lists.llvm.org
Wed Oct 25 08:44:58 PDT 2023


Author: Joseph Huber
Date: 2023-10-25T10:44:07-05:00
New Revision: 8a181f43da2c395daaf30d83248b18d2ab8fe226

URL: https://github.com/llvm/llvm-project/commit/8a181f43da2c395daaf30d83248b18d2ab8fe226
DIFF: https://github.com/llvm/llvm-project/commit/8a181f43da2c395daaf30d83248b18d2ab8fe226.diff

LOG: [OpenMP][Obvious] Fix incompatbile function prototype causing failures

Summary:
This function needs `void` as the arguments to be ABI compatbile with
what is actually defined. This is enforced when doing CUDA separable
linking of the runtime.

Added: 
    

Modified: 
    openmp/libomptarget/test/api/omp_get_num_procs.c

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/test/api/omp_get_num_procs.c b/openmp/libomptarget/test/api/omp_get_num_procs.c
index f58274b5e15e78a..e958d0cf3492f68 100644
--- a/openmp/libomptarget/test/api/omp_get_num_procs.c
+++ b/openmp/libomptarget/test/api/omp_get_num_procs.c
@@ -2,7 +2,7 @@
 
 #include <stdio.h>
 
-int omp_get_num_procs();
+int omp_get_num_procs(void);
 
 int main() {
   int num_procs;


        


More information about the Openmp-commits mailing list