File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ run_setup: check-python
27
27
all : dawnlib check-clang check-linux-vulkan lib pch
28
28
cd examples/gpu_puzzles && make build/gpu_puzzles
29
29
cd examples/hello_world && make build/hello_world
30
- cd examples/matmul && make build/mm
30
+ cd examples/matmul && make build/matmul
31
31
cd examples/physics && make build/physics
32
32
cd examples/render && make build/render
33
33
66
66
read -r -p " This will delete the contents of build/*. Are you sure? [CTRL-C to abort] " response && rm -rf build/*
67
67
rm -rf examples/gpu_puzzles/build/*
68
68
rm -rf examples/hello_world/build/*
69
- rm -rf examples/matmul/build/mm
69
+ rm -rf examples/matmul/build/matmul
70
70
rm -rf examples/physics/build/*
71
71
rm -rf examples/render/build/*
72
72
rm -f build/gpu.h.pch
Original file line number Diff line number Diff line change @@ -22,11 +22,16 @@ def get_os_name():
22
22
23
23
def download_file (url , output_filename ):
24
24
total_downloaded = 0
25
+ total_truncated = 0 # only print download progress every 2MB to avoid spamming logs
25
26
26
27
def report_progress (block_num , block_size , total_size ):
27
28
nonlocal total_downloaded
29
+ nonlocal total_truncated
28
30
total_downloaded += block_size
29
- print (f"\r Downloaded { total_downloaded // (1024 * 1024 )} MB" , end = "" )
31
+ if total_downloaded // (1024 * 1024 ) > total_truncated :
32
+ total_truncated = total_downloaded // (1024 * 1024 )
33
+ if total_truncated % 2 == 0 :
34
+ print (f"\r Downloaded { total_downloaded // (1024 * 1024 )} MB" , end = "" )
30
35
31
36
try :
32
37
ssl ._create_default_https_context = ssl ._create_stdlib_context
You can’t perform that action at this time.
0 commit comments