Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/hip/device.cpp
| Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Lines | for (int num = 0; num < count; num++) { | ||||
| DeviceInfo info; | DeviceInfo info; | ||||
| info.type = DEVICE_HIP; | info.type = DEVICE_HIP; | ||||
| info.description = string(name); | info.description = string(name); | ||||
| info.num = num; | info.num = num; | ||||
| info.has_nanovdb = true; | info.has_nanovdb = true; | ||||
| info.has_light_tree = false; | |||||
| info.denoisers = 0; | info.denoisers = 0; | ||||
| info.has_gpu_queue = true; | info.has_gpu_queue = true; | ||||
| /* Check if the device has P2P access to any other device in the system. */ | /* Check if the device has P2P access to any other device in the system. */ | ||||
| for (int peer_num = 0; peer_num < count && !info.has_peer_memory; peer_num++) { | for (int peer_num = 0; peer_num < count && !info.has_peer_memory; peer_num++) { | ||||
| if (num != peer_num) { | if (num != peer_num) { | ||||
| int can_access = 0; | int can_access = 0; | ||||
| hipDeviceCanAccessPeer(&can_access, num, peer_num); | hipDeviceCanAccessPeer(&can_access, num, peer_num); | ||||
| ▲ Show 20 Lines • Show All 123 Lines • Show Last 20 Lines | |||||