We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcc2455 commit 3c4ab53Copy full SHA for 3c4ab53
gemlite/core.py
@@ -410,6 +410,7 @@ def forward_auto_with_warmup(self, x: Tensor) -> Tensor:
410
411
@staticmethod
412
def cache_config(filename: str):
413
+ global GEMLITE_TRITON_CONFIG_CACHE
414
#Load existing cache if available
415
try:
416
with FILE_LOCK, open(filename, 'r') as json_file:
@@ -437,6 +438,10 @@ def cache_config(filename: str):
437
438
for name in _GEMLITE_TRITON_MAPPING:
439
if(name not in config):
440
config[name] = {}
441
+
442
+ if(name in GEMLITE_TRITON_CONFIG_CACHE):
443
+ config[name].update(GEMLITE_TRITON_CONFIG_CACHE[name])
444
445
config[name].update(cache_kernel_config(_GEMLITE_TRITON_MAPPING[name].kernel, 5)) #5: len(prune_keys)
446
447
#Save combined cache
0 commit comments