Skip to content

Commit 59a0094

Browse files
Move -g to each command
1 parent 9147546 commit 59a0094

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

experimental/kernels/Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ endif
1212

1313
# ASYNCIFY allows emscripten to sleep
1414
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
1616
CFLAGS=-Ofast -march=native -I. -Iunittest_llmc
1717
# CFLAGS=-O2 -march=native -I. -Iunittest_llmc
1818

@@ -79,7 +79,7 @@ endef
7979
build/test_gpt2: llm.c build/unittest_kernels.o gpt2_124M.bin
8080
mkdir -p build
8181
$(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
8383

8484
build/test_gpt2_with_metal_profiler: llm.c build/unittest_kernels.o gpt2_124M.bin
8585
mkdir -p build
@@ -90,7 +90,7 @@ build/test_gpt2_with_metal_profiler: llm.c build/unittest_kernels.o gpt2_124M.bi
9090
build/train_gpt2: llm.c build/unittest_kernels.o gpt2_124M.bin
9191
mkdir -p build
9292
$(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
9494

9595
build/ops.o: ops.cpp ops.hpp kernels.h llm.c
9696
mkdir -p build && $(CXX) $(CXXFLAGS) -c -o $@ $<

0 commit comments

Comments
 (0)