Skip to content

Commit f516543

Browse files
committed
gpu puzzles checking functionality (wip)
1 parent 779f60b commit f516543

File tree

5 files changed

+310
-226
lines changed

5 files changed

+310
-226
lines changed

experimental/fasthtml/gpu_puzzles/Makefile

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
GPUCPP=../../../
22
COMMON_FLAGS=-std=c++17 -s USE_WEBGPU=1 -s ASYNCIFY=1 -I$(GPUCPP)
3+
# COMMON_FLAGS=-std=c++17 -s USE_WEBGPU=1 -I$(GPUCPP)
34
# Note - no spaces after comma
45
# enable exceptions to recover from WGSL failure
5-
JS_FLAGS=-s EXPORTED_RUNTIME_METHODS=['UTF8ToString','setValue','addFunction'] -s EXPORTED_FUNCTIONS=['_malloc','_free','_executeKernel'] -s NO_DISABLE_EXCEPTION_CATCHING
6-
WASM_FLAGS=-s STANDALONE_WASM -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s EXPORTED_FUNCTIONS=['_executeKernel'] -s EXPORTED_RUNTIME_METHODS=['ccall','cwrap'] -DSTANDALONE_WASM
6+
JS_FLAGS=-s EXPORTED_RUNTIME_METHODS=['UTF8ToString','setValue','addFunction'] -s EXPORTED_FUNCTIONS=['_malloc','_free','_executeKernel','_runCheck'] -s DISABLE_EXCEPTION_CATCHING=0
7+
WASM_FLAGS=-s STANDALONE_WASM -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s EXPORTED_FUNCTIONS=['_executeKernel','_runCheck'] -s EXPORTED_RUNTIME_METHODS=['ccall','cwrap'] -DSTANDALONE_WASM
78
MODULARIZE_FLAGS=-s EXPORT_NAME='createModule' -s MODULARIZE=1 --bind
8-
NO_MODULARIZE_FLAGS=-s EXPORTED_FUNCTIONS=['_executeKernel'] -s EXPORTED_RUNTIME_METHODS=['ccall','cwrap'] --bind
9+
NO_MODULARIZE_FLAGS=-s EXPORTED_FUNCTIONS=['_executeKernel','_runCheck'] -s EXPORTED_RUNTIME_METHODS=['ccall','cwrap'] --bind
910

1011
.PHONY: default cmake check-emsdk browser clean server
1112

0 commit comments

Comments
 (0)