Skip to content

Commit 2f8fe0d

Browse files
authored
[FRONTEND] Remove unused json parse in triton.compile (#5510)
This line is somewhat expensive since it reads a file from disk. As far as I can tell it is a duplicate of this line (which is actually used): https://github.com/triton-lang/triton/blob/d9facf3a6edbc819c80d58b87e689bc0c2632756/python/triton/compiler/compiler.py#L360
1 parent d9facf3 commit 2f8fe0d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

python/triton/compiler/compiler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ def compile(src, target=None, options=None):
250250
always_compile = os.environ.get("TRITON_ALWAYS_COMPILE", "0") == "1"
251251
if not always_compile and metadata_path is not None:
252252
# cache hit!
253-
metadata = json.loads(Path(metadata_path).read_text())
254253
return CompiledKernel(src, metadata_group, hash)
255254
# initialize metadata
256255
metadata = {

0 commit comments

Comments
 (0)