Commit b4bb31d
authored
finalize cross platform builds (#6)
* fix(workflow): enhance Windows build configurations for CUDA, HIP, and OpenCL support
* fix(workflow): update Windows OpenBLAS build configuration
* update(workflow): update Windows CUDA
* fix(workflow): missing if condition in install cuda step
* fix(workflow): configure CUDA for MinGW on Windows builds
* fix(workflow): windows test were missing custom make flags
* clear(workflow): update conditional dependencies for Windows Vulkan and OpenBLAS
* clear(workflow): remove unnecessary shell specification for Windows Vulkan and CUDA steps
* fix(workflow): update Windows HIP toolkit installation process
* fix(workflow): set HIP_PATH and CMAKE_PREFIX_PATH for Windows HIP toolkit installation
* fix(workflow): enhance Windows HIP build configuration with ROCm and compiler flags
* fix(workflow): update Windows HIP build configuration
* fix(workflow): update Windows HIP build configuration
* fix(workflow): update Windows HIP build configuration to disable CPU support
* fix(workflow): Windows HIP pwsh path to bash path
* fix(workflow): correct path handling for HIP and CMAKE_PREFIX in Windows setup
* fix(workflow): set HIP_PLATFORM to amd and update environment variables for Windows HIP setup
* fix(workflow): update CMake flags for Windows HIP build to remove unnecessary warning flags
* fix(workflow): increase timeout for build job and adjust CUDA host compiler settings for Windows
* fix(workflow): update Windows build steps for sqlite-ai with CUDA and refine make command
* fix(workflow): add Ninja installation step for Windows CUDA build and set CMAKE_GENERATOR
* fix(workflow): update Windows build steps to use Ninja and adjust CMake arguments for CUDA
* fix(workflow): no escape ninja argument windows cuda
* fix(workflow): update Windows CUDA build configuration to use Ninja generator and adjust build command
* fix(workflow): increase timeout for Windows CUDA build to 60 minutes and ensure ggml-cuda build step is conditional
* fix(build): update windows cuda linker flags
* fix(workflow): remove unnecessary LLAMA_ARGS from windows ggml-cuda build step
* fix(build): update WHISPER_OPTIONS to use llama.cpp GGML
* fix(build): update WHISPER_OPTIONS and add ggml package config for whisper.cpp
* fix(build): update ggml package config for whisper.cpp to use new directory structure
* fix(build): update ggml package config for whisper.cpp to use new include directory
* fix(build): fix windows hip and cuda linker flags
* fix(build): update LLAMA_LDFLAGS to include CUDA and HIP library paths
* fix(build): update LLAMA_LDFLAGS to link against amdhip64 library for HIP support
* fix(build): add msvcrt library to LLAMA_LDFLAGS for Windows support
* fix(build): update LLAMA_LDFLAGS to include vcruntime and ucrt for Windows support
* fix(build): update LLAMA_LDFLAGS for improved Windows support and remove unnecessary HIP flags
* fix(build): update make command to build extension for Windows
* fix(build): enhance Windows build process for CUDA and HIP support with MSVC integration
* fix(utils): improve timestamp handling for UUID generation across platforms
* fix(utils): improve Windows compatibility by adjusting header inclusion for status definitions
* fix(build): update linker flags for MSVC compatibility in Makefile
* fix(build): update Windows build configuration for CUDA and HIP support
* fix(build): update Windows HIP build configuration to use Clang instead of MSVC
* fix(build): update MSVC linker flags and library handling for Windows platform
* fix(build): update path for rocwmma library include in Windows HIP build configuration
* fix(build): update Windows HIP build configuration to use Clang and cache ROCm toolkit
* fix(build): update Windows build process to set PATH for VCTools and use link.exe for linking
* fix(build): update Windows HIP build configuration to include ROCWMMA path and adjust PATH settings for MSVC
* feat(workflow): cache dependencies and modules build
* feat(workflow): disable Windows CUDA and HIP build and test steps to cache modules and dependencies
* fix(workflow): update cache keys to include OS and architecture for llama, whisper, and miniaudio builds
* fix(workflow): include make hash in cache keys for llama, whisper, and miniaudio builds to avoid exceeding 512 characters limit
* fix(workflow): make command hash cross platform fix
* fix(workflow): rename step to clarify purpose of calculating cache version hashes for modules and dependencies
* feat(workflow): add support for Windows SYCL builds and install Intel OneAPI toolkit
* fix(workflow): use environment variable for make hash calculation in cache version hashes step
* fix(build): enhance support for SYCL builds in Windows and adjust MSVC linking
* fix(workflow): add caching for CUDA toolkit installation on Windows
* fix(workflow): add verification for Intel OneAPI installation in Windows setup
* run(workflow): skip windows-hip steps to create cache for hip toolkit installation
* fix(test): re-enable every sycl, cuda and hip step
* fix(workflow): update include path for hip build on Windows
* fix(workflow): add caching for module dependencies and intel oneAPI toolkit installation
* run(workflow): skip failing compilation to cache windows-sycl dependencies
* fix(workflow): re-enable windows-sycl steps
* fix(build): remove DEF_FILE from link command for MSVC
* fix(build): update MSVC library paths to use backslashes for compatibility
* fix(build): update link command to use absolute path for MSVC linker
* fix(build): update link command to use cmd.exe for MSVC compatibility
* fix(build): update MSVC link command to use response file for improved readability
* fix(build): add checks for build directories and required library files in MSVC target
* fix(build): reorder LLAMA_LIBS for correct library linking in MSVC target
* fix(build): add CUDA_PATH and MSVC_LIBS echo statements for improved debugging in Makefile
* fix(build): escape quotes in MSVC_LIBS for proper CUDA library linking
* fix(build): update MSVC link command to use printf for improved formatting in response file
* fix(build): add support for HIP Clang in Makefile for improved compatibility with HIP builds
* fix(build): correct MSVC_LIBS path formatting for CUDA libraries in Makefile
* fix(build): add additional MSVC libraries for improved compatibility in Makefile
* fix(build): add support for additional MSVC libraries and implement strncasecmp for compatibility
* run(workflow): cache llama, whisper and miniaudio hip builds
* fix(workflow): enable hip build
* fix(build): add HIP_CLANG support for object file compilation
* fix(workflow): install sqlite alongside ninja for cuda, hip, and sycl on Windows
* fix(build): quote paths for clang executables in HIP_CLANG configuration
* fix(workflow): set CUDA_PATH for windows-cuda in build environment
* fix(build): correct paths for LLAMA_LIBS and update linker flags for HIP builds
* fix(build): clear linker flags for WHISPER and MINIAUDIO when using HIP_CLANG
* fix(build): update LLAMA_LDFLAGS to set linker flags correctly for HIP builds
* fix(tests): update SQLite command to load AI version from the correct path
* fix(tests): update test command to load AI version from the correct path
* fix(build): add linker flags for HIP_CLANG to support shared library builds
* fix(build): add MSVC libraries for HIP_CLANG support and update linker flags
* fix(build): remove unnecessary MSVC libraries for HIP_CLANG support
* fix(workflow): uncomment and format OneAPI setup for windows-sycl
* fix(workflow): escape backslashes in OneAPI setvars.bat path for windows-sycl
* fix(workflow): update OneAPI setvars.bat path handling for windows-sycl
* fix(workflow): streamline build steps for llama.cpp, whisper.cpp, and miniaudio in windows-sycl
* fix(build): enforce release build type for LLAMA, WHISPER, and MINIAUDIO when using SYCL on Windows
* fix(build): adjust LLAMA library linking for SYCL on Windows
* fix(workflow): increase build timeout to 120 minutes and CACHE consolidate GPU build configurations for Windows
* fix(build): update LLAMA build configurations for CUDA, HIP, and SYCL on Windows
* fix(build): adjust llama.cpp build condition
* fix(build): cache android modules
* fix(build): add adb command to push commands.sh to Android device
* fix(build): update LLAMA build flags for windows-gpu and disable unnecessary build steps
* fix(build): remove unnecessary GGML_BACKEND_DL flag for windows-gpu build
* fix(build): enable GGML_BACKEND_DL flag for windows-gpu CUDA and HIP builds
* fix(build): enable dynamic backend loading for Windows builds and adjust linking options
* Update main.yml
* fix(build): update llama.cpp build commands for windows-gpu to include multiple targets
* fix(build): add CUDAToolkit_ROOT environment variable for windows-gpu build
* fix(build): correct CUDAToolkit_ROOT path format for Windows
* fix(build): add CUDA toolkit setup for windows-gpu in workflow
* fix(build): change shell to cmd for llama.cpp build on windows-gpu
* fix(build): add call to setvars.bat for Intel oneAPI in windows-gpu build
* fix(build): consolidate Linux build configurations and install steps
* fix(build): enable dynamic loading backend for Linux builds
* fix(build): remove backend dynamic loading flag for Linux builds
* fix(build): update LLAMA and WHISPER make options for Linux and Windows builds
* fix(build): update iOS build configuration for universal binary support
* fix(build): update make options for LLAMA and WHISPER across all platforms
* clear(build): change build order
* fix(build): update Windows setup conditions and streamline Vulkan package installation
* fix(build): enhance iOS Miniaudio options for compatibility with Objective-C
* fix(build): update llama.cpp build targets for improved compatibility
* fix(build): set VULKAN_SDK environment variable for Windows build
* fix(build): set VULKAN_SDK environment variable for Windows testing
* fix(build): update iOS build settings for universal binary support and SDK paths
* fix(build): update Windows build environment setup for llama.cpp
* fix(build): test build cuda
* fix(build): add call to setvars.bat for Intel oneAPI environment setup on Windows
* restore ios and isim makefile
* fix(build): update iOS make command to use 'isim' platform for compatibility
* fix(build): add iOS support for Miniaudio options in Makefile
* fix(build): update iOS make command
* fix(build): update iOS build configuration for isim platform
* fix(build): update iSIM build configuration for arm64 architecture
* fix(build): enhance iOS support for 'isim' platform with multi-architecture flags
* fix(build): simplify make commands for windows-gpu and remove unused build steps
* fix(build): update Windows build conditions to use 'windows-latest' and disable 'windows-gpu' steps
* Windows gpu enable cpu
* Cpu all variants
* Update main.yml
* fix(build): resolve symbol conflicts for GGML_STATIC Windows builds
* fix(build): update make options for Linux and Windows to enable Vulkan and OpenCL
* fix(build): remove OpenBLAS installation from Linux workflow and streamline OpenCL setup
* fix(build): add static linking flags for Linux to improve compatibility
* fix(build): update linker and compiler flags for Linux to enhance compatibility
* fix(build): update Ubuntu version in workflow and remove deprecated C++ ABI flags for Linux builds
* fix(build): simplify compiler flags for Windows builds and remove unused conditions
* fix(build): remove static linking support for CUDA, HIP, and SYCL in Makefile
* fix(build): correct object file extension handling in Makefile
* fix(build): streamline LLAMA_OPTIONS and linker flags for shared library support
* fix(src): remove msvc changes
* fix(build): standardize formatting of LLAMA_OPTIONS and LLAMA_LDFLAGS assignments
* fix(src): revert msvc changes
* fix(build): adjust LLAMA_OPTIONS and LDFLAGS for shared library support
* fix(build): enable shared library support for Whisper and Miniaudio
* fix(build): conditionally include Vulkan and OpenCL dependencies for Windows
* fix(build): remove unnecessary installation of ninja and sqlite for windows-gpu
* fix(build): ensure conditional inclusion of Vulkan and OpenCL dependencies for Windows
* fix(build): add ggml build directory to caching and update library paths
* fix(build): update CMake command for Whisper to use CMAKE_PREFIX_PATH
* fix(build): ensure object files depend on llama.cpp.stamp for proper build order
* fix(build): disable OpenMP for LLAMA and WHISPER on macOS
* fix(build): remove duplicate ggml-blas library from macOS and iOS build configurations
* fix(build): update test command to conditionally include make options
* fix(build): update Whisper build command to use ggml_DIR for CMake
* fix(build): update WHISPER_OPTIONS to include ggml_DIR for CMake configuration
* fix(build): update WHISPER_OPTIONS to use CMAKE_PREFIX_PATH for ggml directory
* fix(build): update WHISPER_OPTIONS to set ggml_DIR for CMake configuration
* fix(build): add ggml_DIR to WHISPER_OPTIONS for CMake configuration
* fix(build): ensure ggml_DIR is set correctly in Whisper build command
* fix(build): export ggml_DIR for CMake configuration in Whisper build process
* fix(build): remove redundant export of ggml_DIR in Whisper build process
* fix(build): update ggml_DIR configuration for Whisper build process
* fix(build): update Whisper build options for iOS and isim platforms
* fix(build): update CMake command for Whisper build to include CMAKE_PREFIX_PATH
* fix(build): update CMake command for Whisper build to specify ggml_DIR
* fix(build): update CMake command for Whisper build to use absolute path for ggml_DIR
* fix(build): disable GGML_OPENMP for iOS and isim platforms in build options
* fix(build): simplify CMake command for Whisper build by removing redundant CMAKE_PREFIX_PATH
* fix(build): update CMake command for Whisper build to use -D flag for CMAKE_PREFIX_PATH
* fix(build): update CMake command for Whisper build to use ggml_DIR instead of CMAKE_PREFIX_PATH
* fix(build): add additional Miniaudio dependencies to linker flags
* fix(build): refactor Makefile and Workflow file
* fix(build): update macOS build configuration and refine Android make options
* fix(build): update make options for LLAMA and WHISPER in macOS and Linux configurations
* fix(build): include Makefile hash in cache keys for llama, whisper, and miniaudio builds
* fix(build): update Android make options to enable AVX2 and FMA optimizations
* bump version
* fix(build): remove unnecessary make options for Android build1 parent e172b9c commit b4bb31d
3 files changed
+182
-150
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| 24 | + | |
| 25 | + | |
36 | 26 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 27 | + | |
| 28 | + | |
45 | 29 | | |
46 | 30 | | |
47 | 31 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 32 | + | |
57 | 33 | | |
58 | 34 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 35 | + | |
| 36 | + | |
72 | 37 | | |
73 | 38 | | |
74 | 39 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 40 | + | |
80 | 41 | | |
81 | 42 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 43 | + | |
| 44 | + | |
102 | 45 | | |
103 | 46 | | |
104 | 47 | | |
105 | 48 | | |
106 | 49 | | |
107 | | - | |
108 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
109 | 54 | | |
110 | 55 | | |
111 | | - | |
| 56 | + | |
112 | 57 | | |
113 | 58 | | |
114 | | - | |
| 59 | + | |
115 | 60 | | |
116 | 61 | | |
117 | 62 | | |
| |||
123 | 68 | | |
124 | 69 | | |
125 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
126 | 103 | | |
127 | 104 | | |
128 | 105 | | |
| |||
133 | 110 | | |
134 | 111 | | |
135 | 112 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
147 | 118 | | |
148 | 119 | | |
149 | | - | |
150 | | - | |
151 | | - | |
| 120 | + | |
| 121 | + | |
152 | 122 | | |
153 | 123 | | |
154 | | - | |
| 124 | + | |
155 | 125 | | |
156 | 126 | | |
157 | 127 | | |
| |||
168 | 138 | | |
169 | 139 | | |
170 | 140 | | |
171 | | - | |
| 141 | + | |
172 | 142 | | |
173 | 143 | | |
174 | 144 | | |
| |||
181 | 151 | | |
182 | 152 | | |
183 | 153 | | |
| 154 | + | |
184 | 155 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
190 | 165 | | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
197 | 214 | | |
198 | 215 | | |
199 | 216 | | |
200 | 217 | | |
201 | 218 | | |
| 219 | + | |
| 220 | + | |
202 | 221 | | |
203 | | - | |
| 222 | + | |
204 | 223 | | |
205 | 224 | | |
206 | 225 | | |
| |||
235 | 254 | | |
236 | 255 | | |
237 | 256 | | |
238 | | - | |
239 | 257 | | |
240 | 258 | | |
241 | 259 | | |
| |||
247 | 265 | | |
248 | 266 | | |
249 | 267 | | |
250 | | - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
251 | 272 | | |
252 | 273 | | |
253 | 274 | | |
254 | | - | |
255 | | - | |
| 275 | + | |
| 276 | + | |
256 | 277 | | |
| 278 | + | |
| 279 | + | |
257 | 280 | | |
258 | | - | |
259 | | - | |
260 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
261 | 284 | | |
262 | 285 | | |
263 | 286 | | |
| |||
316 | 339 | | |
317 | 340 | | |
318 | 341 | | |
319 | | - | |
| 342 | + | |
0 commit comments