Skip to content

Commit

Permalink
[Batchnorm][ASM] Disabling ASM kernel for unsupported target (gfx940)…
Browse files Browse the repository at this point in the history
… (#1312)
  • Loading branch information
muralinr authored Dec 4, 2021
1 parent 330bdd9 commit cd0d942
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/solver/batchnorm/backward_spatial_single.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,11 @@ BnBwdTrainingSpatialSingle::GetSolution(const ExecutionContext& context,
(StartsWith(handle.GetDeviceName(), "gfx8") ||
(StartsWith(handle.GetDeviceName(), "gfx9")
#if WORKAROUND_ISSUE_1146
&& (handle.GetDeviceName() != "gfx90a")
&&
(handle.GetDeviceName() != "gfx90a")
#endif
)) &&
&&
(handle.GetDeviceName() != "gfx940"))) &&
(!handle.GetTargetProperties().Xnack() || !*handle.GetTargetProperties().Xnack()))
{
kernel.kernel_file = "gcnAsmBNBwdTrainSpatial.s";
Expand Down

0 comments on commit cd0d942

Please sign in to comment.