SWDEV-351031 - Any bit other than the rightmost 4 bits shouldn't be set
Change-Id: I6c834f491ce393eb37259eabc603220c5b5f164e
[ROCm/clr commit: 35051e778d]
Этот коммит содержится в:
коммит произвёл
Jaydeepkumar Patel
родитель
7e7576a849
Коммит
29d27cdee0
@@ -1089,7 +1089,7 @@ hipError_t hipHostGetFlags(unsigned int* flagsPtr, void* hostPtr) {
|
||||
}
|
||||
|
||||
hipError_t ihipHostRegister(void* hostPtr, size_t sizeBytes, unsigned int flags) {
|
||||
if (hostPtr == nullptr || sizeBytes == 0) {
|
||||
if (hostPtr == nullptr || sizeBytes == 0 || flags > 15) {
|
||||
return hipErrorInvalidValue;
|
||||
} else {
|
||||
amd::Memory* mem = new (*hip::host_device->asContext()) amd::Buffer(*hip::host_device->asContext(),
|
||||
|
||||
Ссылка в новой задаче
Block a user