We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 17d111a + e124bb1 commit ea810b8Copy full SHA for ea810b8
10 files changed
examples/gpu_puzzles/key.cpp
@@ -54,7 +54,7 @@ void puzzle1(Context &ctx) {
54
Tensor a = createTensor(ctx, {N}, kf32, makeData<N>().data());
55
Tensor output = createTensor(ctx, {N}, kf32);
56
Kernel op = createKernel(ctx, {kPuzzle1, N}, Bindings{a, output},
57
- /*nWorkgroups */ {1, 1, 1});
+ /*totalWorkgroups */ {1, 1, 1});
58
showResult<N>(ctx, op, output);
59
}
60
@@ -146,7 +146,7 @@ void puzzle4(Context &ctx) {
146
};
147
Kernel op =
148
createKernel(ctx, {kPuzzle4, /*workgroup size*/ {Wx, Wy, 1}},
149
- Bindings{input, output}, /* nWorkgroups */ {1, 1, 1}, Params{N});
+ Bindings{input, output}, /* totalWorkgroups */ {1, 1, 1}, Params{N});
150
showResult<N, N, N>(ctx, op, output);
151
152
examples/hello_world/Makefile
@@ -22,6 +22,9 @@ run_setup: check-python
22
build/$(TARGET): run.cpp
23
mkdir -p build && $(CXX) $(FLAGS) -DNDEBUG -o ./build/$(TARGET)
24
25
+debug: run.cpp
26
+ mkdir -p build && $(CXX) $(FLAGS) -g -o ./build/$(TARGET)
27
+
28
clean:
29
read -r -p "This will delete the contents of build/*. Are you sure? [CTRL-C to abort] " response && rm -rf build/*
30
experimental/fasthtml/gpu_puzzles/Makefile
@@ -24,9 +24,13 @@ build/run.wasm: check-emsdk run.cpp
em++ run.cpp -o build/run.wasm \
$(COMMON_FLAGS) $(WASM_FLAGS)
-watch:
+watch-rel:
@echo "Watching for changes..."
- ls run.cpp | entr -c make debug
+ ls *.cpp *.h | entr -c make build/run.js
31
+watch-dbg:
32
+ @echo "Watching for changes..."
33
+ ls *.cpp *.h | entr -c make debug
34
35
server: build/run.js
36
python3 run.py
0 commit comments