corrected hipDeviceGetProperties to hipGetDeviceProperties - not docs
[ROCm/hip commit: d3ba2b9782]
Ta zmiana jest zawarta w:
%! (template.HTML=
Aditya Atluri)złożyło 2016-03-06 08:31:04 -06:00
1 rodzic
3c91a6d0a7
złożenie
f1b8758919
24 plików zmienionych
+27
-27
Żadne pliki nie pasują do Twojego wyszukiwania
@@ -427,7 +427,7 @@ Nvidia devices implement the timer as a per-compute-unit clock that increments o
|
||||
To obtain the clock frequency, use the hipDeviceProp_t.clockInstructionRate field:
|
||||
|
||||
```
|
||||
hipDeviceGetProperties(&deviceProps, deviceId);
|
||||
hipGetDeviceProperties(&deviceProps, deviceId);
|
||||
// Compute time in ms--device_ticks is based on values reported from clock() device function
|
||||
float time = device_ticks / (float)deviceProps.clockInstructionRate;
|
||||
```
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika