Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ROCm 6.0.1] Automatically activate the new HIPRTC PCH adaptations starting from the 6.0.24000 version. Fix some build errors. #2644

Merged
merged 2 commits into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/kernels/MIOpenLayerNorm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <hip/hip_runtime.h>
#endif

#include "miopen_cstdint.hpp"
#include "float_types.h"

#if MIOPEN_USE_BFP16 == 1
Expand Down
2 changes: 1 addition & 1 deletion src/kernels/miopen_cstdint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ typedef signed char int8_t;
typedef unsigned char uint8_t;
typedef signed short int16_t;
typedef unsigned short uint16_t;
#if HIP_PACKAGE_VERSION_FLAT >= 6001000000ULL
#if HIP_PACKAGE_VERSION_FLAT >= 6000024000ULL
typedef signed int int32_t;
typedef unsigned int uint32_t;
typedef __hip_internal::uint64_t uint64_t;
Expand Down
2 changes: 1 addition & 1 deletion src/kernels/miopen_type_traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ struct remove_cv
typedef typename remove_volatile<typename remove_const<T>::type>::type type;
};

#if HIP_PACKAGE_VERSION_FLAT >= 6001000000ULL
#if HIP_PACKAGE_VERSION_FLAT >= 6000024000ULL
template <class T, T v>
struct integral_constant
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "hip/hip_runtime.h"
#include "hip/hip_fp16.h"
#endif
#include "miopen_cstdint.hpp"
#include "bfloat16_dev.hpp"

// index type: unsigned or signed
Expand Down