@@ -66,7 +66,7 @@ def set_gflags(
6666def check_cache_file_exists (cache_file ):
6767 # for autotuning, we save two files: .cuda and .options, we will check that
6868 # these two files exists for the validity of cache
69- if os .path .exists (cache_file + ".options" ) and os . path . exists ( cache_file + ".cuda" ) :
69+ if os .path .exists (cache_file + ".options" ):
7070 return True
7171 return False
7272
@@ -254,7 +254,7 @@ def autotune(self, *inputs, **kwargs):
254254 cache_file = "/tmp/{}_{}" .format (hash_key , str (uuid .uuid4 ()))
255255 elif isinstance (kwargs ["cache" ], str ):
256256 cache_file = kwargs ["cache" ]
257- logger .info ('Autotuning cache will be saved to: {}.cuda/ options' .format (cache_file ))
257+ logger .info ('Autotuning cache will be saved to: {}.options' .format (cache_file ))
258258 else :
259259 logger .warning ("Autotuning results won't be cached. 'cache' option is not set" )
260260
@@ -297,7 +297,7 @@ def autotune(self, *inputs, **kwargs):
297297
298298 if cache_file :
299299 cache_file = cache_file + "_backward"
300- logger .info ('Backwards autotuning cache will be saved to: {}.cuda/ options' .format (cache_file ))
300+ logger .info ('Backwards autotuning cache will be saved to: {}.options' .format (cache_file ))
301301 kwargs ["type" ] = "backward"
302302 options = get_options_from_kwargs_and_tuner_cache (backward_name , cache_file , options_cache , * inputs , ** kwargs )
303303 backward_best_options = self .tune_and_store (
0 commit comments