File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 12
12
13
13
# ASYNCIFY allows emscripten to sleep
14
14
EMFLAGS=-std =c++17 -I$(GPUCPP ) -I$(GPUCPP ) /third_party/headers/wasm -I. -Iunittest_llmc -I$(GPUCPP ) /third_party/llm.c -s USE_WEBGPU=1 -s ASYNCIFY=1 -s STACK_SIZE=100000 -s MEMORY64=1 -s ALLOW_MEMORY_GROWTH=1
15
- CXXFLAGS=-std =c++17 -I$(GPUCPP ) -I$(GPUCPP ) /third_party/headers -I. -Iunittest_llmc -g
15
+ CXXFLAGS=-std =c++17 -I$(GPUCPP ) -I$(GPUCPP ) /third_party/headers -I. -Iunittest_llmc
16
16
CFLAGS =-Ofast -march=native -I. -Iunittest_llmc
17
17
# CFLAGS=-O2 -march=native -I. -Iunittest_llmc
18
18
79
79
build/test_gpt2 : llm.c build/unittest_kernels.o gpt2_124M.bin
80
80
mkdir -p build
81
81
$(call preprocess_file)
82
- $(CC ) $(CFLAGS ) $(LDFLAGS ) -o $@ llm.c/test_gpt2.c build/unittest_kernels.o
82
+ $(CC ) $(CFLAGS ) $(LDFLAGS ) -o $@ llm.c/test_gpt2.c build/unittest_kernels.o -g
83
83
84
84
build/test_gpt2_with_metal_profiler : llm.c build/unittest_kernels.o gpt2_124M.bin
85
85
mkdir -p build
@@ -90,7 +90,7 @@ build/test_gpt2_with_metal_profiler: llm.c build/unittest_kernels.o gpt2_124M.bi
90
90
build/train_gpt2 : llm.c build/unittest_kernels.o gpt2_124M.bin
91
91
mkdir -p build
92
92
$(call preprocess_file)
93
- $(CC ) $(CFLAGS ) $(LDFLAGS ) -o $@ llm.c/train_gpt2.c build/unittest_kernels.o
93
+ $(CC ) $(CFLAGS ) $(LDFLAGS ) -o $@ llm.c/train_gpt2.c build/unittest_kernels.o -g
94
94
95
95
build/ops.o : ops.cpp ops.hpp kernels.h llm.c
96
96
mkdir -p build && $(CXX ) $(CXXFLAGS ) -c -o $@ $<
You can’t perform that action at this time.
0 commit comments