SWDEV-545947 - Add Nvidia mapping for hipSetValidDevices (#29)
Этот коммит содержится в:
1 родитель
f638aa91eb
Коммит
98ef2f64b5
1 file changed
+4
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user