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

Allow for 32 bit builds #2884

Merged
merged 1 commit into from
Dec 14, 2023
Merged

Allow for 32 bit builds #2884

merged 1 commit into from
Dec 14, 2023

Conversation

dstutt
Copy link
Member

@dstutt dstutt commented Dec 14, 2023

The amdllpc unit tests fail for 32 bit builds due to the 64 bit specific code in vkgcMetroHash (assumptions are made about size_t).

Use compact32 for 32 bit builds instead.

@dstutt dstutt requested a review from a team as a code owner December 14, 2023 13:25
@@ -86,6 +86,13 @@ inline bool operator!=(const Hash &lhs, const Hash &rhs) {
namespace std {
template <> struct hash<MetroHash::Hash> {
// Returns `hash` compacted to `size_t`. Returns zero for value-initialized hashes.
size_t operator()(const MetroHash::Hash &hash) const { return static_cast<size_t>(MetroHash::compact64(&hash)); }
size_t operator()(const MetroHash::Hash &hash) const {
if constexpr (sizeof(size_t) == 8) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

constexpr is probably not required - but it makes it more explicit what is happening.

The amdllpc unit tests fail for 32 bit builds due to the 64 bit specific code
in vkgcMetroHash (assumptions are made about size_t).

Use compact32 for 32 bit builds instead.
@amdvlk-admin
Copy link

Test summary for commit 7a48c7d

CTS tests (Failed: 0/138443)
  • Built with version 1.3.5.2
  • Ubuntu navi3x, Srdcvk
    • Passed: 35211/69228 (50.9%)
    • Failed: 0/69228 (0.0%)
    • Not Supported: 34017/69228 (49.1%)
    • Warnings: 0/69228 (0.0%)
    Ubuntu navi2x, Srdcvk
    • Passed: 35242/69215 (50.9%)
    • Failed: 0/69215 (0.0%)
    • Not Supported: 33973/69215 (49.1%)
    • Warnings: 0/69215 (0.0%)

@dstutt dstutt merged commit 55cd330 into GPUOpen-Drivers:dev Dec 14, 2023
9 checks passed
@dstutt dstutt deleted the llpc-unit-32bit branch December 14, 2023 15:47
qiaojbao pushed a commit that referenced this pull request Jan 2, 2024
The amdllpc unit tests fail for 32 bit builds due to the 64 bit specific code
in vkgcMetroHash (assumptions are made about size_t).

Use compact32 for 32 bit builds instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants