Skip to content

Commit 487b870

Browse files
authored
[ROCm 6.0.1] Automatically activate the new HIPRTC PCH adaptations starting from the 6.0.24000 version. Fix some build errors. (#2644)
* Automatically activate the new HIPRTC PCH adaptations starting from the 6.0.24000 version. Fix some build errors (#2465 + more) (cherry picked from commit 4f695d9) * Remove duplicated includes.
1 parent 38a0ebf commit 487b870

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

src/kernels/MIOpenLayerNorm.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <hip/hip_runtime.h>
2929
#endif
3030

31+
#include "miopen_cstdint.hpp"
3132
#include "float_types.h"
3233

3334
#if MIOPEN_USE_BFP16 == 1

src/kernels/miopen_cstdint.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ typedef signed char int8_t;
3030
typedef unsigned char uint8_t;
3131
typedef signed short int16_t;
3232
typedef unsigned short uint16_t;
33-
#if HIP_PACKAGE_VERSION_FLAT >= 6001000000ULL
33+
#if HIP_PACKAGE_VERSION_FLAT >= 6000024000ULL
3434
typedef signed int int32_t;
3535
typedef unsigned int uint32_t;
3636
typedef __hip_internal::uint64_t uint64_t;

src/kernels/miopen_type_traits.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ struct remove_cv
7676
typedef typename remove_volatile<typename remove_const<T>::type>::type type;
7777
};
7878

79-
#if HIP_PACKAGE_VERSION_FLAT >= 6001000000ULL
79+
#if HIP_PACKAGE_VERSION_FLAT >= 6000024000ULL
8080
template <class T, T v>
8181
struct integral_constant
8282
{

src/kernels/static_composable_kernel/include/utility/static_kernel_config.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "hip/hip_runtime.h"
66
#include "hip/hip_fp16.h"
77
#endif
8+
#include "miopen_cstdint.hpp"
89
#include "bfloat16_dev.hpp"
910

1011
// index type: unsigned or signed

0 commit comments

Comments
 (0)