Skip to content

Commit 4c32514

Browse files
FindHaofacebook-github-bot
authored andcommitted
Add copyright headers
Summary: NA Reviewed By: xuzhao9 Differential Revision: D76272545 fbshipit-source-id: 39847c0f1c4918ca5d06914e905187f46c1efde9
1 parent f48d060 commit 4c32514

File tree

9 files changed

+27
-4
lines changed

9 files changed

+27
-4
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,14 @@ A comprehensive visualization and analysis tool for Triton IR files, designed to
5757
**Prerequisites:**
5858

5959
- **Python** >= 3.8
60-
- **Triton** >= 3.3.1
60+
- **Triton** > 3.3.1
61+
62+
For now, you need to manually install latest Triton from source.
63+
```bash
64+
git clone https://github.com/triton-lang/triton
65+
cd triton
66+
pip install -e .
67+
```
6168

6269
**Quick Start:**
6370

run.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env python3
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
3+
24
from tritonparse.common import is_fbcode
35
from tritonparse.utils import init_parser
46

tritonparse/common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
13
import gzip
24

35
import importlib

tritonparse/extract_source_mappings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env python3
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
3+
24
"""
35
Extract source code mappings from Triton trace files and update the original JSON.
46
This script reads a JSON trace file containing Triton IR (TTIR, TTGIR) and PTX(AMDGCN),

tritonparse/source_type.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
13
from enum import Enum
24
from pathlib import Path
35
from typing import Tuple

tritonparse/structured_logging.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
13
import atexit
24
import importlib
35
import inspect
@@ -259,10 +261,8 @@ def format(self, record: logging.LogRecord):
259261
log_entry["payload"] = json.loads(payload)
260262
clean_log_entry = convert(log_entry)
261263
if not TRITONPARSE_NDJSON:
262-
log.info("TritonJsonFormatter: using JSON format")
263264
return json.dumps(clean_log_entry, indent=2)
264265
else:
265-
log.info("TritonJsonFormatter: using NDJSON format")
266266
# NDJSON format requires a newline at the end of each line
267267
return json.dumps(clean_log_entry, separators=(",", ":")) + "\n"
268268

tritonparse/tp_logger.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
13
import logging
24

35
logger = logging.getLogger("tritonparse")

tritonparse/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
13
import argparse
24
import os
35
import shutil

website/src/App.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,11 @@ function App() {
460460
<footer className="w-full py-1 px-6 border-t border-gray-200 bg-white mt-auto">
461461
<div className="container mx-auto flex justify-between items-center text-sm">
462462
<div className="text-gray-500">
463-
&copy; {new Date().getFullYear()} TritonParse
463+
Copyright © {new Date().getFullYear()} Meta Platforms, Inc
464+
<span className="mx-2">|</span>
465+
<a href="https://opensource.fb.com/legal/terms" className="hover:underline">Terms of Use</a>
466+
<span className="mx-2">|</span>
467+
<a href="https://opensource.fb.com/legal/privacy" className="hover:underline">Privacy Policy</a>
464468
</div>
465469
<div className="text-gray-500">
466470
Version {import.meta.env.PACKAGE_VERSION}

0 commit comments

Comments
 (0)