Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

Makefile 1.3 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
  1. build: build/examples/unity/libfairseq2_cpp.so ggml/build/bin/unity
  2. build/examples/unity/libfairseq2_cpp.so: Makefile examples/unity/*.h examples/unity/*.cpp src/ggml*.c
  3. mkdir -p build
  4. cd build; cmake\
  5. -DGGML_OPENBLAS=ON \
  6. -DBUILD_SHARED_LIBS=On \
  7. -DCMAKE_BUILD_TYPE=Release \
  8. -DCMAKE_CXX_FLAGS="-g2 -fno-omit-frame-pointer" \
  9. -DTRACY_ENABLE=ON \
  10. ..
  11. cd build; make -j4 fairseq2_cpp
  12. find build/ -iname '*.so'
  13. ggml/build/bin/unity: Makefile examples/unity/*.h examples/unity/*.cpp src/ggml*.c
  14. mkdir -p build
  15. cd build; cmake\
  16. -DGGML_OPENBLAS=ON \
  17. -DBUILD_SHARED_LIBS=On \
  18. -DCMAKE_BUILD_TYPE=Release \
  19. -DCMAKE_CXX_FLAGS="-g2 -fno-omit-frame-pointer" \
  20. -DTRACY_ENABLE=ON \
  21. ..
  22. cd build; make -j4 unity
  23. find build/ -iname '*.so'
  24. tests: build/src/libggml.so
  25. pytest ./*.py -s
  26. build/src/libggml_cuda.so: Makefile examples/unity/*.h examples/unity/*.cpp
  27. mkdir -p build
  28. cd build; cmake\
  29. -DGGML_CUBLAS=ON \
  30. -DBUILD_SHARED_LIBS=On \
  31. -DCMAKE_BUILD_TYPE=Release \
  32. -DCMAKE_CXX_FLAGS="-g2" \
  33. ..
  34. cd build; make -j4 ggml
  35. mv build/src/libggml.so build/src/libggml_cuda.so
  36. find build/ -iname '*.so'
  37. cuda_tests: build/src/libggml_cuda.so
  38. sed -i 's/lib_base_name = "ggml"/lib_base_name = "ggml_cuda"/' third_party_ggml.py
  39. pytest ./*.py -s
  40. sed -i 's/lib_base_name = "ggml_cuda"/lib_base_name = "ggml"/' third_party_ggml.py
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...