Page MenuHome

Fix Kernels loading on Arch names with extra options
ClosedPublic

Authored by Brian Savery (bsavery) on Nov 4 2021, 8:10 PM.

Details

Summary

The kernel file names are search for based on the arch name, for example gfx1010. However HIP's gcnArchName can contain options such as xnack- in the name. For example gfx1010:sramecc-:xnack-

This revision tokenizes the info from gcnArchName and just uses the first token for choosing the Kernel file to use. Kernels are portable across those features in the arch name,

Also I removed the bit for recompiling ptx as clearly that is not relevant.

Diff Detail

Repository
rB Blender

Event Timeline

Brian Savery (bsavery) requested review of this revision.Nov 4 2021, 8:10 PM
Brian Savery (bsavery) created this revision.
Brian Savery (bsavery) edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Nov 4 2021, 8:15 PM

I will modify this to also handle the runtime compilation case.

Ray Molenkamp (LazyDodo) added inline comments.
intern/cycles/device/hip/device_impl.cpp
244

ther->the

ow wow, already too late, that was fast :)

I've fixed the typo in a follow up commit now.