Skip to content

Commit c875e10

Browse files
committed
[NFC][hipcc] add a utils header and associated source
Change-Id: I02180d058833d0e32d795dab4535385dd7547d94
1 parent 73960c3 commit c875e10

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

amd/hipcc/CMakeLists.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,16 @@ set(ADDITIONAL_SHARED_LIBRARIES_TO_LINK
2424
set(HIPCC_BIN
2525
hipcc.bin)
2626
set(HIPCC_SOURCES
27-
src/hipBin.cpp)
27+
src/hipBin.cpp
28+
src/utils.cpp
29+
)
2830

2931
set(HIPCONFIG_BIN
3032
hipconfig.bin)
3133
set(HIPCONFIG_SOURCES
32-
src/hipBin.cpp)
34+
src/hipBin.cpp
35+
src/utils.cpp
36+
)
3337

3438
add_executable(${HIPCC_BIN} ${HIPCC_SOURCES})
3539
if(NOT WIN32)

amd/hipcc/src/hipBin_util.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ THE SOFTWARE.
2525

2626
#include "filesystem.h"
2727

28+
#include "utils.h"
29+
2830
#include <assert.h>
2931
#include <stdlib.h>
3032
#include <limits.h>
@@ -77,7 +79,6 @@ struct SystemCmdOut {
7779
int exitCode = 0;
7880
};
7981

80-
8182
class HipBinUtil {
8283
public:
8384
static HipBinUtil* getInstance() {

amd/hipcc/src/utils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "utils.h"

amd/hipcc/src/utils.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#ifndef HIP_UTILS_H
2+
#define HIP_UTILS_H
3+
4+
namespace hipcc {
5+
namespace utils {}
6+
} // namespace hipcc
7+
8+
#endif

0 commit comments

Comments
 (0)