Enable SVM atomics for HIP/Win
hip_threadfence_system passes locally with this change. This also fixes
hipHostMalloc() failures when hipHostMallocMapped flag is used.
Change-Id: Id412efe502accc7c6e7676b52c05ccb9d8fbbe67
[ROCm/clr commit: 5de65ba4a0]
Этот коммит содержится в:
коммит произвёл
Vladislav Sytchenko
родитель
3944391ddc
Коммит
93d797f9a0
@@ -603,12 +603,8 @@ void NullDevice::fillDeviceInfo(const Pal::DeviceProperties& palProp,
|
||||
if (settings().svmFineGrainSystem_) {
|
||||
info_.svmCapabilities_ |= CL_DEVICE_SVM_FINE_GRAIN_SYSTEM;
|
||||
}
|
||||
if (IS_LINUX) {
|
||||
// Report atomics capability based on GFX IP
|
||||
// The atomic test failed in Windows OS.
|
||||
if (amd::IS_HIP && ipLevel_ >= Pal::GfxIpLevel::GfxIp9) {
|
||||
info_.svmCapabilities_ |= CL_DEVICE_SVM_ATOMICS;
|
||||
}
|
||||
if (amd::IS_HIP && ipLevel_ >= Pal::GfxIpLevel::GfxIp9) {
|
||||
info_.svmCapabilities_ |= CL_DEVICE_SVM_ATOMICS;
|
||||
}
|
||||
// OpenCL2.0 device info fields
|
||||
info_.maxWriteImageArgs_ = MaxReadWriteImage; //!< For compatibility
|
||||
|
||||
Ссылка в новой задаче
Block a user