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

[hipRTC] Fix conflicting workaround with updated hipRTC #2615

Closed
wants to merge 6 commits into from
Closed
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
20 changes: 0 additions & 20 deletions .github/workflows/update_develop_nightly.yml

This file was deleted.

15 changes: 15 additions & 0 deletions src/composable_kernel/composable_kernel/include/utility/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@
#endif
#include "bfloat16_dev.hpp"

#ifdef __HIPCC_RTC__
#ifdef WORKAROUND_ISSUE_HIPRTC_TRUE_TYPE
#if HIP_PACKAGE_VERSION_FLAT >= 6000023494ULL
/// Definitions from <cstdint>, <cmath> conflict with
/// /opt/rocm/include/hip/amd_detail/amd_hip_vector_types.h.

typedef int int32_t;
typedef unsigned int uint32_t;

#endif
#else
#include <cstdint> // int8_t, int16_t
#endif
#endif // __HIPCC_RTC__

// "Constant" address space for kernel parameter
#define CONSTANT __attribute__((address_space(4)))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
/// which defines std::true_type as well (which is wrong).

namespace std {
#if(HIP_PACKAGE_VERSION_FLAT < 6000023494ULL)

template <class T>
struct remove_reference
Expand Down Expand Up @@ -62,17 +63,19 @@ struct remove_cv
};

template <class T>
struct is_pointer_helper : std::false_type
struct is_pointer : is_pointer_helper<typename std::remove_cv<T>::type>
{
};

#endif

template <class T>
struct is_pointer_helper<T*> : std::true_type
struct is_pointer_helper : std::false_type
{
};

template <class T>
struct is_pointer : is_pointer_helper<typename std::remove_cv<T>::type>
struct is_pointer_helper<T*> : std::true_type
{
};

Expand Down