Skip to content

Commit 68ab93f

Browse files
[libomptarget][amdgpu][nfc] Rename source files
1 parent a4357bc commit 68ab93f

File tree

10 files changed

+27
-28
lines changed

10 files changed

+27
-28
lines changed

openmp/libomptarget/plugins/amdgpu/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ else()
6262
endif()
6363

6464
add_library(omptarget.rtl.amdgpu SHARED
65-
impl/atmi.cpp
66-
impl/atmi_interop_hsa.cpp
65+
impl/impl.cpp
66+
impl/interop_hsa.cpp
6767
impl/data.cpp
6868
impl/get_elf_mach_gfx_name.cpp
6969
impl/system.cpp

openmp/libomptarget/plugins/amdgpu/impl/data.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
#include "atmi_runtime.h"
8+
#include "impl_runtime.h"
99
#include "hsa_api.h"
1010
#include "internal.h"
1111
#include "rt.h"

openmp/libomptarget/plugins/amdgpu/impl/atmi.cpp renamed to openmp/libomptarget/plugins/amdgpu/impl/impl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
//===--- amdgpu/impl/atmi.cpp ------------------------------------- C++ -*-===//
1+
//===--- amdgpu/impl/impl.cpp ------------------------------------- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
#include "atmi_runtime.h"
8+
#include "impl_runtime.h"
99
#include "hsa_api.h"
1010
#include "internal.h"
1111
#include "rt.h"

openmp/libomptarget/plugins/amdgpu/impl/atmi.h renamed to openmp/libomptarget/plugins/amdgpu/impl/impl.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
//===--- amdgpu/impl/atmi.h --------------------------------------- C++ -*-===//
1+
//===--- amdgpu/impl/impl.h --------------------------------------- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
#ifndef INCLUDE_ATMI_H_
9-
#define INCLUDE_ATMI_H_
8+
#ifndef INCLUDE_IMPL_H_
9+
#define INCLUDE_IMPL_H_
1010

1111
#define ROCM_VERSION_MAJOR 3
1212
#define ROCM_VERSION_MINOR 2
@@ -36,4 +36,4 @@ typedef enum atmi_memtype_s {
3636
} atmi_memtype_t;
3737

3838
/** @} */
39-
#endif // INCLUDE_ATMI_H_
39+
#endif // INCLUDE_IMPL_H_

openmp/libomptarget/plugins/amdgpu/impl/atmi_runtime.h renamed to openmp/libomptarget/plugins/amdgpu/impl/impl_runtime.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
//===--- amdgpu/impl/atmi_runtime.h ------------------------------- C++ -*-===//
1+
//===--- amdgpu/impl/impl_runtime.h ------------------------------- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
#ifndef INCLUDE_ATMI_RUNTIME_H_
9-
#define INCLUDE_ATMI_RUNTIME_H_
8+
#ifndef INCLUDE_IMPL_RUNTIME_H_
9+
#define INCLUDE_IMPL_RUNTIME_H_
1010

11-
#include "atmi.h"
11+
#include "impl.h"
1212
#include "hsa_api.h"
1313

1414
extern "C" {
@@ -67,4 +67,4 @@ hsa_status_t atmi_memcpy_d2h(hsa_signal_t sig, void *hostDest,
6767

6868
}
6969

70-
#endif // INCLUDE_ATMI_RUNTIME_H_
70+
#endif // INCLUDE_IMPL_RUNTIME_H_

openmp/libomptarget/plugins/amdgpu/impl/internal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
#include "hsa_api.h"
2525

26-
#include "atmi.h"
27-
#include "atmi_runtime.h"
26+
#include "impl.h"
27+
#include "impl_runtime.h"
2828
#include "rt.h"
2929

3030
#define MAX_NUM_KERNELS (1024 * 16)

openmp/libomptarget/plugins/amdgpu/impl/atmi_interop_hsa.cpp renamed to openmp/libomptarget/plugins/amdgpu/impl/interop_hsa.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
//===--- amdgpu/impl/atmi_interop_hsa.cpp ------------------------- C++ -*-===//
1+
//===--- amdgpu/impl/interop_hsa.cpp ------------------------------ C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
#include "atmi_interop_hsa.h"
8+
#include "interop_hsa.h"
99
#include "internal.h"
1010

1111
hsa_status_t atmi_interop_hsa_get_symbol_info(

openmp/libomptarget/plugins/amdgpu/impl/atmi_interop_hsa.h renamed to openmp/libomptarget/plugins/amdgpu/impl/interop_hsa.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
//===--- amdgpu/impl/atmi_interop_hsa.h --------------------------- C++ -*-===//
1+
//===--- amdgpu/impl/interop_hsa.h -------------------------------- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
#ifndef INCLUDE_ATMI_INTEROP_HSA_H_
9-
#define INCLUDE_ATMI_INTEROP_HSA_H_
8+
#ifndef INCLUDE_INTEROP_HSA_H_
9+
#define INCLUDE_INTEROP_HSA_H_
1010

11-
#include "atmi_runtime.h"
11+
#include "impl_runtime.h"
1212
#include "hsa_api.h"
1313
#include "internal.h"
1414

@@ -17,7 +17,7 @@
1717

1818
extern "C" {
1919

20-
/** \defgroup interop_hsa_functions ATMI-HSA Interop
20+
/** \defgroup interop_hsa_functions HSA Interop
2121
* @{
2222
*/
2323

@@ -82,4 +82,4 @@ hsa_status_t atmi_interop_hsa_get_kernel_info(
8282

8383
}
8484

85-
#endif // INCLUDE_ATMI_INTEROP_HSA_H_
85+
#endif // INCLUDE_INTEROP_HSA_H_

openmp/libomptarget/plugins/amdgpu/impl/rt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#ifndef SRC_RUNTIME_INCLUDE_RT_H_
99
#define SRC_RUNTIME_INCLUDE_RT_H_
1010

11-
#include "atmi_runtime.h"
11+
#include "impl_runtime.h"
1212
#include "hsa_api.h"
1313
#include <string>
1414

openmp/libomptarget/plugins/amdgpu/src/rtl.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@
2424
#include <unordered_map>
2525
#include <vector>
2626

27-
// Header from ATMI interface
28-
#include "atmi_interop_hsa.h"
29-
#include "atmi_runtime.h"
27+
#include "interop_hsa.h"
28+
#include "impl_runtime.h"
3029

3130
#include "internal.h"
3231

0 commit comments

Comments
 (0)