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
Dieser Commit ist enthalten in:
committet von
Vladislav Sytchenko
Ursprung
290b42625a
Commit
5de65ba4a0
@@ -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
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren