Skip to content

Commit

Permalink
fix: Incorrect cache ID directory (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrytangyuan committed Jun 9, 2022
1 parent 8f8c81e commit 15d9c51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/lang/ir/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ func (g Graph) CacheID(filename string) string {
gpu := g.CUDA != nil || g.CUDNN != nil
var cacheID string
if gpu {
cacheID = fmt.Sprintf("/%s-gpu-%s", g.CachePrefix, filename)
cacheID = fmt.Sprintf("%s/%s-gpu", filename, g.CachePrefix)
} else {
cacheID = fmt.Sprintf("/%s-cpu-%s", g.CachePrefix, filename)
cacheID = fmt.Sprintf("%s/%s-cpu", filename, g.CachePrefix)
}
logrus.Debugf("apt/pypi calculated cacheID: %s", cacheID)
return cacheID
Expand Down

0 comments on commit 15d9c51

Please sign in to comment.