Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
713d421
First stab at html output for codegen diffs
jacobhinkle Sep 29, 2023
fc7746d
Add small test script REMOVE LATER
jacobhinkle Sep 29, 2023
2994d77
Still WIP
jacobhinkle Sep 29, 2023
e845a96
First working version
jacobhinkle Sep 29, 2023
31b9362
Change widths of buttons. Still ugly but easier to hit
jacobhinkle Sep 29, 2023
763d107
Merge remote-tracking branch 'origin/main' into html_codegen_diff
jacobhinkle Sep 29, 2023
7b50828
Add command to html output
jacobhinkle Sep 29, 2023
ec9ca99
Show preamble, and diff if they do not match
jacobhinkle Sep 30, 2023
f55f19a
Add note to enable skipping preamble in output
jacobhinkle Sep 30, 2023
6f4373a
Formatting
jacobhinkle Sep 30, 2023
8841b45
Add "Toggle All" buttons
jacobhinkle Sep 30, 2023
9bc0118
Remove test script
jacobhinkle Sep 30, 2023
18927a7
Lint template using djlint
jacobhinkle Sep 30, 2023
4a6bbd5
Use uninitialized members in dataclasses
jacobhinkle Sep 30, 2023
e535015
Add PTX
jacobhinkle Sep 30, 2023
7a1ddba
Remove ptxas from code diffs.
jacobhinkle Oct 2, 2023
f30b119
Don't print diffs to STDOUT by default
jacobhinkle Oct 2, 2023
b098145
Add --max-diffs option (default=200)
jacobhinkle Oct 2, 2023
67a2e5f
Highlight in client
jacobhinkle Oct 2, 2023
4ed7817
Add --html-omit-preamble option
jacobhinkle Oct 2, 2023
2f69df2
Load cpp and diff for highlighting
jacobhinkle Oct 2, 2023
c2de705
Use asdict() instead of custom to_dict
jacobhinkle Oct 2, 2023
2c6fcb1
Output LOC, index type, and ptxas info
jacobhinkle Oct 2, 2023
a879cfc
Show stats on new tests
jacobhinkle Oct 3, 2023
6d6a75c
Add arch, clean up info lines
jacobhinkle Oct 3, 2023
ccc0c9b
Add --json argument
jacobhinkle Oct 3, 2023
409fb13
Remove stale pygments ref in template
jacobhinkle Oct 3, 2023
a92ed12
Record env in compare_codegen.sh
jacobhinkle Oct 3, 2023
546c540
Add env, gpu, nvcc version, with --hide-env option
jacobhinkle Oct 3, 2023
38cd3bd
Add hrs, envs, reformat a bit
jacobhinkle Oct 3, 2023
327edca
Add footer
jacobhinkle Oct 3, 2023
c097ace
Add license headers
jacobhinkle Oct 3, 2023
7685536
Fix footer link
jacobhinkle Oct 3, 2023
d648f6f
Fix a few formatting bugs
jacobhinkle Oct 3, 2023
cd0c50f
Clean env by removing $testdir
jacobhinkle Oct 3, 2023
9fb46de
Strip testdir= from env dump
jacobhinkle Oct 3, 2023
c7a345b
Merge branch 'main' into html_codegen_diff
jacobhinkle Oct 3, 2023
30bfc4c
Change --show-diffs to --hide-diffs
jacobhinkle Oct 3, 2023
6e77355
Match failing tests not just passed
jacobhinkle Oct 3, 2023
4bc4dd6
Include fail/pass if different, or if new test fails
jacobhinkle Oct 3, 2023
932d065
Change condition for test fail/pass printing
jacobhinkle Oct 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion tools/compare_codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ run_test() {
mkdir -p "$testdir"
echo "$testcmd" > "$testdir/command"

# exclude $testdir when printing env
printenv | grep -v '^testdir=' > "$testdir/env"

nvcc --version > "$testdir/nvcc_version"
nvidia-smi --query-gpu=gpu_name --format=csv,noheader > "$testdir/gpu_names"

# Allow next command to fail
set +e
$testcmd | tee "$testdir/stdout-$(date +%Y%m%d_%H%M%S).log"
Expand Down Expand Up @@ -186,7 +192,7 @@ collect_kernels() {
export NVFUSER_TEST_RANDOM_SEED=0
export NVFUSER_DISABLE=parallel_compile
# run tests and benchmarks with cuda_to_file and dump output to files
export NVFUSER_DUMP=cuda_to_file
export NVFUSER_DUMP=cuda_to_file,ptxas_verbose

mkdir -p "$outdir/$commit"

Expand Down
Loading