SWDEV-278873 - hipStreamCreate handle invalid flag value
Change-Id: I05c0e0b76f7b09947e48d5b9f225af305bade27f
[ROCm/hip commit: 45ccc14d55]
Esse commit está contido em:
commit de
Anusha Godavarthy Surya
pai
2c94fc9b42
commit
362629f2e8
@@ -188,6 +188,9 @@ void CL_CALLBACK ihipStreamCallback(cl_event event, cl_int command_exec_status,
|
||||
static hipError_t ihipStreamCreate(hipStream_t* stream,
|
||||
unsigned int flags, hip::Stream::Priority priority,
|
||||
const std::vector<uint32_t>& cuMask = {}) {
|
||||
if (flags != hipStreamDefault && flags != hipStreamNonBlocking) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
hip::Stream* hStream = new hip::Stream(hip::getCurrentDevice(), priority, flags, false, cuMask);
|
||||
|
||||
if (hStream == nullptr || !hStream->Create()) {
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário