Skip to content

Commit ea810b8

Browse files
authored
Merge branch 'main' into static_helpers
2 parents 17d111a + e124bb1 commit ea810b8

10 files changed

Lines changed: 1534 additions & 581 deletions

File tree

examples/gpu_puzzles/key.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void puzzle1(Context &ctx) {
5454
Tensor a = createTensor(ctx, {N}, kf32, makeData<N>().data());
5555
Tensor output = createTensor(ctx, {N}, kf32);
5656
Kernel op = createKernel(ctx, {kPuzzle1, N}, Bindings{a, output},
57-
/*nWorkgroups */ {1, 1, 1});
57+
/*totalWorkgroups */ {1, 1, 1});
5858
showResult<N>(ctx, op, output);
5959
}
6060

@@ -146,7 +146,7 @@ void puzzle4(Context &ctx) {
146146
};
147147
Kernel op =
148148
createKernel(ctx, {kPuzzle4, /*workgroup size*/ {Wx, Wy, 1}},
149-
Bindings{input, output}, /* nWorkgroups */ {1, 1, 1}, Params{N});
149+
Bindings{input, output}, /* totalWorkgroups */ {1, 1, 1}, Params{N});
150150
showResult<N, N, N>(ctx, op, output);
151151
}
152152

examples/hello_world/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ run_setup: check-python
2222
build/$(TARGET): run.cpp
2323
mkdir -p build && $(CXX) $(FLAGS) -DNDEBUG -o ./build/$(TARGET)
2424

25+
debug: run.cpp
26+
mkdir -p build && $(CXX) $(FLAGS) -g -o ./build/$(TARGET)
27+
2528
clean:
2629
read -r -p "This will delete the contents of build/*. Are you sure? [CTRL-C to abort] " response && rm -rf build/*
2730

experimental/fasthtml/gpu_puzzles/Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ build/run.wasm: check-emsdk run.cpp
2424
em++ run.cpp -o build/run.wasm \
2525
$(COMMON_FLAGS) $(WASM_FLAGS)
2626

27-
watch:
27+
watch-rel:
2828
@echo "Watching for changes..."
29-
ls run.cpp | entr -c make debug
29+
ls *.cpp *.h | entr -c make build/run.js
30+
31+
watch-dbg:
32+
@echo "Watching for changes..."
33+
ls *.cpp *.h | entr -c make debug
3034

3135
server: build/run.js
3236
python3 run.py

0 commit comments

Comments
 (0)