Skip to content

Conversation

veselypeta and others added 23 commits October 23, 2023 16:26
- The UR spec was recently changed to guarantee that hint entryponts
never return errors. This commit changes the CUDA adapter to be
conformant with this change.
- This commit also changes the type of PointerRangeSize which
 was causing a stack corruption.
CUDA does not make a distinction between binaryTypes (it treats PTX and binaries using the same entrypoints).

However, for UR, by definition:

* urProgramCompile should set the binary type to UR_PROGRAM_BINARY_TYPE_COMPILED_OBJECT
* urProgramBuild / urProgramLink should set it to UR_PROGRAM_BINARY_TYPE_EXECUTABLE.
* urProgramCreateWithBinary should set the binary type to UR_PROGRAM_BINARY_TYPE_COMPILED_OBJECT
@fabiomestre fabiomestre marked this pull request as ready for review November 14, 2023 16:27
@fabiomestre fabiomestre requested review from a team as code owners November 14, 2023 16:27
Copy link
Contributor

@kbenzie kbenzie left a comment

Choose a reason for hiding this comment

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

This includes the changes in #1030 which was already approved by the HIP reviewers, #990 and #989 which were already approved by CUDA reviewers.

@kbenzie kbenzie merged commit 534071e into oneapi-src:adapters Nov 15, 2023
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