Skip to content

Add hip-clang install to install script#75

Merged
ex-rzr merged 1 commit into
ROCm:developfrom
aaronenyeshi:add-hip-clang-install
Jun 22, 2019
Merged

Add hip-clang install to install script#75
ex-rzr merged 1 commit into
ROCm:developfrom
aaronenyeshi:add-hip-clang-install

Conversation

@aaronenyeshi
Copy link
Copy Markdown
Contributor

Adding the HIP-Clang path which uses hipcc to compile rocPRIM instead.

@aaronenyeshi
Copy link
Copy Markdown
Contributor Author

This change is needed to enable hip-clang build in jenkins

@ex-rzr ex-rzr merged commit e4ddd15 into ROCm:develop Jun 22, 2019
@aaronenyeshi aaronenyeshi deleted the add-hip-clang-install branch June 24, 2019 14:55
assistant-librarian Bot pushed a commit that referenced this pull request Jun 2, 2025
[rocPRIM] Reset internal hip error for tests that run out of
 memory (#75)

The behaviour of hipGetLastError is changing in HIP 7.0. Previously the
error that was reported was cleared on each HIP API call. This means
that hipGetLastError reported any error that occurred during the last
HIP API call.

Moving forward, the error that's reported will only be cleared on each
call to hipGetLastError. This means that hipGetLastError will report any
error that has occurred since the last call to hipGetError.

Some of our tests rely on observing a return value of
hipErrorOutOfMemory from hipMalloc when an allocation is too large for a
given GPU architecture's memory system. This sets the internal HIP
error, and it's not cleared before subsequent tests call
hipGetLastError, causing them to fail.

This change adds extra calls to hipGetLastError to clear the error (for
future tests) in cases where tests run out of memory.
ammallya pushed a commit that referenced this pull request Oct 28, 2025
Add hip-clang install to install script

[ROCm/rocPRIM commit: e4ddd15]
ammallya pushed a commit that referenced this pull request Oct 28, 2025
)

The behaviour of hipGetLastError is changing in HIP 7.0. Previously the
error that was reported was cleared on each HIP API call. This means
that hipGetLastError reported any error that occurred during the last
HIP API call.

Moving forward, the error that's reported will only be cleared on each
call to hipGetLastError. This means that hipGetLastError will report any
error that has occurred since the last call to hipGetError.

Some of our tests rely on observing a return value of
hipErrorOutOfMemory from hipMalloc when an allocation is too large for a
given GPU architecture's memory system. This sets the internal HIP
error, and it's not cleared before subsequent tests call
hipGetLastError, causing them to fail.

This change adds extra calls to hipGetLastError to clear the error (for
future tests) in cases where tests run out of memory.
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