Skip to content

Commit d34c3d2

Browse files
committed
Don't compile HIP headers
Signed-off-by: Gavin Zhao <[email protected]>
1 parent 5825f48 commit d34c3d2

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

hip/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ if(Enable_HIP)
22
project(HIP_Module LANGUAGES CXX HIP)
33

44
file(GLOB SOURCES src/*.hip)
5-
file(GLOB INCLUDE include/*.hpp include/*.hip)
5+
file(GLOB INCLUDE include/*.hip)
66

77
source_group("hip_include" FILES ${INCLUDE})
88
source_group("hip_source" FILES ${SOURCE})
@@ -13,7 +13,7 @@ if(Enable_HIP)
1313
message(STATUS "HIP SOURCES: ${SOURCES}")
1414
message(STATUS "HIP INCLUDE: ${INCLUDE}")
1515

16-
add_library(${PROJECT_NAME} OBJECT ${INCLUDE} ${SOURCES})
16+
add_library(${PROJECT_NAME} OBJECT ${SOURCES})
1717

1818
target_include_directories(${PROJECT_NAME} PRIVATE ${TOP_DIR}/core/include include)
1919

File renamed without changes.

hip/include/CudaHelper.hip

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

1414
#define CheckCudaErr(err) \
1515
if (err != hipSuccess) \
16-
throw Anime4KCPP::ACException<Anime4KCPP::ExceptionType::GPU, true>(hipGetErrorString(err), std::string(__FILE__), __LINE__)
16+
throw Anime4KCPP::ACException<Anime4KCPP::ExceptionType::GPU, true>(hipGetErrorString(err), std::string(__FILE__) + ": line " + std::to_string(__LINE__), err)
1717

1818
using uchar = std::uint8_t;
1919
using ushort = std::uint16_t;

hip/src/ACNetHDNL0.hip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1649,6 +1649,6 @@ __device__ __constant__ static const float kernelsL10[4 * 8] =
16491649
0.0415f, -0.1858f
16501650
};
16511651

1652-
#include "ACNetCommon.hpp"
1652+
#include "ACNetCommon.hip"
16531653

16541654
DECLARE_ACNET_HDN_INTERFACE_FUNCTION(0)

hip/src/ACNetHDNL1.hip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1649,6 +1649,6 @@ __device__ __constant__ static const float kernelsL10[4 * 8] =
16491649
0.2273f, -0.1284f
16501650
};
16511651

1652-
#include "ACNetCommon.hpp"
1652+
#include "ACNetCommon.hip"
16531653

16541654
DECLARE_ACNET_HDN_INTERFACE_FUNCTION(1)

hip/src/ACNetHDNL2.hip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1649,6 +1649,6 @@ __device__ __constant__ static const float kernelsL10[4 * 8] =
16491649
0.2443f, -0.1259f
16501650
};
16511651

1652-
#include "ACNetCommon.hpp"
1652+
#include "ACNetCommon.hip"
16531653

16541654
DECLARE_ACNET_HDN_INTERFACE_FUNCTION(2)

hip/src/ACNetHDNL3.hip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1649,6 +1649,6 @@ __device__ __constant__ static const float kernelsL10[4 * 8] =
16491649
0.0799f, -0.3587f
16501650
};
16511651

1652-
#include "ACNetCommon.hpp"
1652+
#include "ACNetCommon.hip"
16531653

16541654
DECLARE_ACNET_HDN_INTERFACE_FUNCTION(3)

0 commit comments

Comments
 (0)