SWDEV-545947 - Add Nvidia mapping for hipSetValidDevices (#29)
[ROCm/hipother commit: 98ef2f64b5]
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e87848cdc7
Коммит
526b46e9ba
@@ -2097,6 +2097,10 @@ inline static hipError_t hipSetDevice(int device) {
|
||||
return hipCUDAErrorTohipError(cudaSetDevice(device));
|
||||
}
|
||||
|
||||
inline static hipError_t hipSetValidDevices(int* device_arr, int len) {
|
||||
return hipCUDAErrorTohipError(cudaSetValidDevices(device_arr, len));
|
||||
}
|
||||
|
||||
inline static hipError_t hipChooseDevice(int* device, const hipDeviceProp_t* prop) {
|
||||
|
||||
if (prop == NULL) {
|
||||
|
||||
Ссылка в новой задаче
Block a user