File tree Expand file tree Collapse file tree 5 files changed +801
-3
lines changed
Expand file tree Collapse file tree 5 files changed +801
-3
lines changed Original file line number Diff line number Diff line change 22* .o
33* .so
44* .whl
5+ benchmark_lstm
56haste_lstm
67haste_gru
Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ LOCAL_CFLAGS := -I/usr/include/eigen3 -I/usr/local/cuda/include -Ilib -O3
77LOCAL_LDFLAGS := -L/usr/local/cuda/lib64 -L. -lcudart -lcublas
88
99# Small enough project that we can just recompile all the time.
10- .PHONY : all haste haste_tf examples clean
10+ .PHONY : all haste haste_tf examples benchmarks clean
1111
12- all : haste haste_tf examples
12+ all : haste haste_tf examples benchmarks
1313
1414haste :
1515 $(NVCC ) -std=c++11 -arch=sm_60 -c lib/lstm_forward_gpu.cu.cc -o lib/lstm_forward_gpu.o -x cu -Xcompiler -fPIC $(LOCAL_CFLAGS )
@@ -35,6 +35,9 @@ examples: haste
3535 $(CXX ) -std=c++11 examples/lstm.cc libhaste.a $(LOCAL_CFLAGS ) $(LOCAL_LDFLAGS ) -o haste_lstm -Wno-ignored-attributes
3636 $(CXX ) -std=c++11 examples/gru.cc libhaste.a $(LOCAL_CFLAGS ) $(LOCAL_LDFLAGS ) -o haste_gru -Wno-ignored-attributes
3737
38+ benchmarks : haste
39+ $(CXX ) -std=c++11 benchmarks/benchmark_lstm.cc libhaste.a $(LOCAL_CFLAGS ) $(LOCAL_LDFLAGS ) -o benchmark_lstm -Wno-ignored-attributes -lcudnn
40+
3841clean :
39- rm -fr haste_lstm haste_gru build haste_* .whl
42+ rm -fr benchmark_lstm haste_lstm haste_gru build haste_* .whl
4043 find . \( -iname ' *.o' -o -iname ' *.so' -o -iname ' *.a' \) -delete
You can’t perform that action at this time.
0 commit comments