diff --git a/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h b/openmp/libomptarget/deviceRTLs/common/omptarget.h rename from openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h rename to openmp/libomptarget/deviceRTLs/common/omptarget.h --- a/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h +++ b/openmp/libomptarget/deviceRTLs/common/omptarget.h @@ -1,4 +1,4 @@ -//===---- omptarget-nvptx.h - NVPTX OpenMP GPU initialization ---- CUDA -*-===// +//===---- omptarget.h - OpenMP GPU initialization ---------------- CUDA -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -11,8 +11,8 @@ // //===----------------------------------------------------------------------===// -#ifndef __OMPTARGET_NVPTX_H -#define __OMPTARGET_NVPTX_H +#ifndef OMPTARGET_H +#define OMPTARGET_H // std includes #include @@ -383,6 +383,6 @@ // inlined implementation //////////////////////////////////////////////////////////////////////////////// -#include "omptarget-nvptxi.h" +#include "common/omptargeti.h" #endif diff --git a/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptxi.h b/openmp/libomptarget/deviceRTLs/common/omptargeti.h rename from openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptxi.h rename to openmp/libomptarget/deviceRTLs/common/omptargeti.h --- a/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptxi.h +++ b/openmp/libomptarget/deviceRTLs/common/omptargeti.h @@ -1,4 +1,4 @@ -//===---- omptarget-nvptxi.h - NVPTX OpenMP GPU initialization --- CUDA -*-===// +//===---- omptargeti.h - OpenMP GPU initialization --------------- CUDA -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/openmp/libomptarget/deviceRTLs/common/src/loop.cu b/openmp/libomptarget/deviceRTLs/common/src/loop.cu --- a/openmp/libomptarget/deviceRTLs/common/src/loop.cu +++ b/openmp/libomptarget/deviceRTLs/common/src/loop.cu @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -#include "omptarget-nvptx.h" +#include "common/omptarget.h" #include "target_impl.h" //////////////////////////////////////////////////////////////////////////////// diff --git a/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu b/openmp/libomptarget/deviceRTLs/common/src/omptarget.cu rename from openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu rename to openmp/libomptarget/deviceRTLs/common/src/omptarget.cu --- a/openmp/libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.cu +++ b/openmp/libomptarget/deviceRTLs/common/src/omptarget.cu @@ -1,4 +1,4 @@ -//===--- omptarget-nvptx.cu - NVPTX OpenMP GPU initialization ---- CUDA -*-===// +//===--- omptarget.cu - OpenMP GPU initialization ---------------- CUDA -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -10,7 +10,7 @@ // //===----------------------------------------------------------------------===// -#include "omptarget-nvptx.h" +#include "common/omptarget.h" #include "target_impl.h" //////////////////////////////////////////////////////////////////////////////// diff --git a/openmp/libomptarget/deviceRTLs/common/src/task.cu b/openmp/libomptarget/deviceRTLs/common/src/task.cu --- a/openmp/libomptarget/deviceRTLs/common/src/task.cu +++ b/openmp/libomptarget/deviceRTLs/common/src/task.cu @@ -27,7 +27,7 @@ // //===----------------------------------------------------------------------===// -#include "omptarget-nvptx.h" +#include "common/omptarget.h" EXTERN kmp_TaskDescr *__kmpc_omp_task_alloc( kmp_Ident *loc, // unused diff --git a/openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt b/openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt --- a/openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt +++ b/openmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt @@ -56,7 +56,7 @@ src/data_sharing.cu src/libcall.cu ${devicertl_common_directory}/src/loop.cu - src/omptarget-nvptx.cu + ${devicertl_common_directory}/src/omptarget.cu src/parallel.cu src/reduction.cu src/support.cu diff --git a/openmp/libomptarget/deviceRTLs/nvptx/src/data_sharing.cu b/openmp/libomptarget/deviceRTLs/nvptx/src/data_sharing.cu --- a/openmp/libomptarget/deviceRTLs/nvptx/src/data_sharing.cu +++ b/openmp/libomptarget/deviceRTLs/nvptx/src/data_sharing.cu @@ -9,7 +9,7 @@ // This file contains the implementation of data sharing environments/ // //===----------------------------------------------------------------------===// -#include "omptarget-nvptx.h" +#include "common/omptarget.h" #include "target_impl.h" #include diff --git a/openmp/libomptarget/deviceRTLs/nvptx/src/libcall.cu b/openmp/libomptarget/deviceRTLs/nvptx/src/libcall.cu --- a/openmp/libomptarget/deviceRTLs/nvptx/src/libcall.cu +++ b/openmp/libomptarget/deviceRTLs/nvptx/src/libcall.cu @@ -11,7 +11,7 @@ // //===----------------------------------------------------------------------===// -#include "omptarget-nvptx.h" +#include "common/omptarget.h" // Timer precision is 1ns #define TIMER_PRECISION ((double)1E-9) diff --git a/openmp/libomptarget/deviceRTLs/nvptx/src/omp_data.cu b/openmp/libomptarget/deviceRTLs/nvptx/src/omp_data.cu --- a/openmp/libomptarget/deviceRTLs/nvptx/src/omp_data.cu +++ b/openmp/libomptarget/deviceRTLs/nvptx/src/omp_data.cu @@ -10,7 +10,7 @@ // //===----------------------------------------------------------------------===// -#include "omptarget-nvptx.h" +#include "common/omptarget.h" #include "common/device_environment.h" //////////////////////////////////////////////////////////////////////////////// diff --git a/openmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu b/openmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu --- a/openmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu +++ b/openmp/libomptarget/deviceRTLs/nvptx/src/parallel.cu @@ -32,7 +32,7 @@ // //===----------------------------------------------------------------------===// -#include "omptarget-nvptx.h" +#include "common/omptarget.h" #include "target_impl.h" typedef struct ConvergentSimdJob { diff --git a/openmp/libomptarget/deviceRTLs/nvptx/src/reduction.cu b/openmp/libomptarget/deviceRTLs/nvptx/src/reduction.cu --- a/openmp/libomptarget/deviceRTLs/nvptx/src/reduction.cu +++ b/openmp/libomptarget/deviceRTLs/nvptx/src/reduction.cu @@ -14,7 +14,7 @@ #include #include -#include "omptarget-nvptx.h" +#include "common/omptarget.h" #include "target_impl.h" EXTERN diff --git a/openmp/libomptarget/deviceRTLs/nvptx/src/support.cu b/openmp/libomptarget/deviceRTLs/nvptx/src/support.cu --- a/openmp/libomptarget/deviceRTLs/nvptx/src/support.cu +++ b/openmp/libomptarget/deviceRTLs/nvptx/src/support.cu @@ -12,7 +12,7 @@ #include "common/support.h" #include "common/debug.h" -#include "omptarget-nvptx.h" +#include "common/omptarget.h" //////////////////////////////////////////////////////////////////////////////// // Execution Parameters diff --git a/openmp/libomptarget/deviceRTLs/nvptx/src/sync.cu b/openmp/libomptarget/deviceRTLs/nvptx/src/sync.cu --- a/openmp/libomptarget/deviceRTLs/nvptx/src/sync.cu +++ b/openmp/libomptarget/deviceRTLs/nvptx/src/sync.cu @@ -10,7 +10,7 @@ // //===----------------------------------------------------------------------===// -#include "omptarget-nvptx.h" +#include "common/omptarget.h" #include "target_impl.h" ////////////////////////////////////////////////////////////////////////////////