Commit f673854
authored
[SYCLomatic] Fix a bug that the result of get_max_clock_frequency is in MHz while should be in kHz (#828)
cudaDeviceProp::clockRate is in kHz while the result of sycl::device::get_info<sycl::info::device::max_clock_frequency> is in MHz.
Multiplying with a thousand in helper function to fix the gap.
Signed-off-by: Ni, Wenhui <[email protected]>1 parent d0d6a24 commit f673854
File tree
2 files changed
+4
-2
lines changed- clang
- runtime/dpct-rt/include
- test/dpct/helper_files_ref/include
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
| 632 | + | |
632 | 633 | | |
633 | 634 | | |
634 | 635 | | |
| |||
785 | 786 | | |
786 | 787 | | |
787 | 788 | | |
788 | | - | |
| 789 | + | |
789 | 790 | | |
790 | 791 | | |
791 | 792 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
255 | 256 | | |
256 | 257 | | |
257 | 258 | | |
| |||
322 | 323 | | |
323 | 324 | | |
324 | 325 | | |
325 | | - | |
| 326 | + | |
326 | 327 | | |
327 | 328 | | |
328 | 329 | | |
| |||
0 commit comments