Commit e0c7425
[ROCm] Fix int4mm device memcpy error on Windows (pytorch#175410)
On Windows with HIP/ROCm, std::memcpy is a __host__ function and cannot be called from __device__ code. Use raw memcpy (which the HIP compiler provides as a device builtin) when building on Windows.
This will allow builds for of pytorch for gfx942 on Windows. gfx950 is yet to be tested but it should likely build as well.
Pull Request resolved: pytorch#175410
Approved by: https://github.com/jeffdaily1 parent 8543095 commit e0c7425
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
579 | 585 | | |
| 586 | + | |
580 | 587 | | |
581 | 588 | | |
582 | 589 | | |
| |||
0 commit comments