Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #34 from ROCmSoftwarePlatform/distance_fix
Browse files Browse the repository at this point in the history
Added the device diff back into the distance calculation.
  • Loading branch information
Mayank Daga authored Apr 3, 2018
2 parents b50b39b + bd236d6 commit 9547fb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miopengemm/src/kernelcache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ double CacheKey::get_distance(const CacheKey& ck) const
distance += gg.get_distance(ck.gg);

// TODO : distance between devices, how should this work?
// distance += 1e-6 * (dvc != ck.dvc);
distance += 1e-6 * (dvc != ck.dvc);

// TODO : improved distance between constraints. will be non-sym.
distance += 1 * (constraints.get_string() != ck.constraints.get_string());
Expand Down

0 comments on commit 9547fb9

Please sign in to comment.