Skip to content

Commit 4c46129

Browse files
dhruvachakronlieb
authored andcommitted
[Offload] [OMPT] Moved OMPT related files to OMPT folders.
Change-Id: I2b5c57b258d21311e4a496e78197ca4bea562d21
1 parent 1e09f62 commit 4c46129

File tree

15 files changed

+25
-28
lines changed

15 files changed

+25
-28
lines changed
File renamed without changes.
File renamed without changes.

offload/include/OmptTracingBuffer.h renamed to offload/include/OpenMP/OMPT/OmptTracingBuffer.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ class OmptTracingBufferMgr {
8282
* this 2nd set of locations need to be atomic or synchronized.
8383
*/
8484
struct Buffer {
85-
uint64_t Id; // Unique identifier of the buffer
86-
int64_t DeviceId; // Device for which this buffer is allocated
87-
void *Start; // Start of allocated space for trace records
88-
size_t TotalBytes; // Total number of bytes in the allocated space
89-
size_t RemainingBytes; // Total number of unused bytes
90-
// corresponding to Cursor
85+
uint64_t Id; // Unique identifier of the buffer
86+
int64_t DeviceId; // Device for which this buffer is allocated
87+
void *Start; // Start of allocated space for trace records
88+
size_t TotalBytes; // Total number of bytes in the allocated space
89+
size_t RemainingBytes; // Total number of unused bytes
90+
// corresponding to Cursor
9191
std::atomic<void *> Cursor; // Address of the last trace record carved out
9292
std::atomic<bool> isFull; // true if no more trace records can be
93-
// accomodated, otherwise false
93+
// accomodated, otherwise false
9494
Buffer(uint64_t BufId, int64_t DevId, void *S, size_t Bytes, size_t Rem,
9595
void *C, bool F)
9696
: Id(BufId), DeviceId(DevId), Start(S), TotalBytes(Bytes),

offload/include/PluginManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#ifndef OMPTARGET_PLUGIN_MANAGER_H
1414
#define OMPTARGET_PLUGIN_MANAGER_H
1515

16-
#include "OmptTracingBuffer.h"
16+
#include "OpenMP/OMPT/OmptTracingBuffer.h"
1717
#include "PluginInterface.h"
1818

1919
#include "DeviceImage.h"

offload/plugins-nextgen/amdgpu/src/rtl.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@
2626
#include <unordered_map>
2727
#include <variant>
2828

29-
#include "OmptCommonDefs.h"
30-
31-
#include "OpenMP/OMPT/Interface.h"
3229
#include "ErrorReporting.h"
30+
#include "OpenMP/OMPT/Interface.h"
31+
#include "OpenMP/OMPT/OmptCommonDefs.h"
3332
#include "Shared/APITypes.h"
3433
#include "Shared/Debug.h"
3534
#include "Shared/Environment.h"

offload/plugins-nextgen/common/OMPT/OmptDeviceTracing.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#ifdef OMPT_SUPPORT
1818

19-
#include "OmptCommonDefs.h"
19+
#include "OpenMP/OMPT/OmptCommonDefs.h"
2020

2121
#include "llvm/Support/DynamicLibrary.h"
2222

offload/plugins-nextgen/common/src/PluginInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//===----------------------------------------------------------------------===//
1010

1111
#include "PluginInterface.h"
12-
#include "OmptCommonDefs.h"
12+
#include "OpenMP/OMPT/OmptCommonDefs.h"
1313

1414
#include "Shared/APITypes.h"
1515
#include "Shared/Debug.h"

offload/src/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ add_llvm_library(omptarget
1212
device.cpp
1313
interface.cpp
1414
omptarget.cpp
15-
OmptTracing.cpp
16-
OmptTracingBuffer.cpp
1715
OffloadRTL.cpp
1816
LegacyAPI.cpp
1917
PluginManager.cpp
@@ -23,6 +21,8 @@ add_llvm_library(omptarget
2321
OpenMP/Mapping.cpp
2422
OpenMP/InteropAPI.cpp
2523
OpenMP/OMPT/Callback.cpp
24+
OpenMP/OMPT/OmptTracing.cpp
25+
OpenMP/OMPT/OmptTracingBuffer.cpp
2626

2727
KernelLanguage/API.cpp
2828

offload/src/LegacyAPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#include "OmptCommonDefs.h"
1413
#include "OpenMP/OMPT/Interface.h"
14+
#include "OpenMP/OMPT/OmptCommonDefs.h"
1515
#include "omptarget.h"
1616
#include "private.h"
1717

offload/src/OpenMP/API.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
#include "OmptCommonDefs.h"
13+
#include "OpenMP/OMPT/OmptCommonDefs.h"
1414
#include "PluginManager.h"
1515
#include "device.h"
1616
#include "omptarget.h"

0 commit comments

Comments
 (0)