mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 15:58:53 +00:00
From PR #6246 (shjszwh; its commit 6407cc70b), author kept. The gfx906 source build (-DSTRATA_HIP_GFX906=ON)
stopped in dflash2.cpp and verify.cpp ("use of undeclared identifier cudaDeviceGetStreamPriorityRange" and
cudaStreamCreateWithPriority): strata_hip.h had no alias for either name. It now maps both to their hip
functions, next to the other cuda-to-hip device and stream names. The same gap was reported in #5233, #3986 and
#4766; those three fix it in dflash2.cpp alone (a macro test or a missing guard), which would leave the other callers
(mtp.cpp, verify.cpp) unmapped, so only the compat-layer fix is taken. No effect on a build that already compiled.