The source code and dockerfile for the GSW2024 AI Lab.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

27 lines
657 B

2 months ago
  1. CXXFLAGS = -O2 -std=c++11 -I..
  2. CXXFLAGS += -Wall -pedantic -Wextra -D_XOPEN_SOURCE=700
  3. SPP_DEPS_1 = spp.h spp_utils.h spp_dlalloc.h spp_traits.h spp_config.h
  4. SPP_DEPS = $(addprefix ../sparsepp/,$(SPP_DEPS_1))
  5. TARGETS = spp_test spp_alloc_test spp_bitset_test perftest1 bench
  6. ifeq ($(OS),Windows_NT)
  7. LDFLAGS = -lpsapi
  8. endif
  9. def: spp_test
  10. all: $(TARGETS)
  11. clean:
  12. rm -rf $(TARGETS) vsprojects/x64/* vsprojects/x86/*
  13. test:
  14. ./spp_test
  15. spp_test: spp_test.cc $(SPP_DEPS) makefile
  16. $(CXX) $(CXXFLAGS) -D_CRT_SECURE_NO_WARNINGS spp_test.cc -o spp_test
  17. %: %.cc $(SPP_DEPS) makefile
  18. $(CXX) $(CXXFLAGS) -DNDEBUG $< -o $@ $(LDFLAGS)