mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-31 08:51:55 +00:00 
			
		
		
		
	ci : re-enable AVX512 testing (Windows-MSVC) (#584)
* CI: Re-enable AVX512 testing (Windows-MSVC) Now with 100% less base64 encoding * plain __cpuid is enough here
This commit is contained in:
		
							
								
								
									
										8
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							| @@ -176,7 +176,13 @@ jobs: | |||||||
|         if: ${{ matrix.build == 'avx512' }} |         if: ${{ matrix.build == 'avx512' }} | ||||||
|         continue-on-error: true |         continue-on-error: true | ||||||
|         run: | |         run: | | ||||||
|           echo "TODO: check avx512f" |           cd build | ||||||
|  |           $vcdir = $(vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath) | ||||||
|  |           $msvc = $(join-path $vcdir $('VC\Tools\MSVC\'+$(gc -raw $(join-path $vcdir 'VC\Auxiliary\Build\Microsoft.VCToolsVersion.default.txt')).Trim())) | ||||||
|  |           $cl =  $(join-path $msvc 'bin\Hostx64\x64\cl.exe') | ||||||
|  |           echo 'int main(void){unsigned int a[4];__cpuid(a,7);return !(a[1]&65536);}' >> avx512f.c | ||||||
|  |           & $cl /O2 /GS- /kernel avx512f.c /link /nodefaultlib /entry:main | ||||||
|  |           .\avx512f.exe && echo "AVX512F: YES" && ( echo HAS_AVX512F=1 >> $env:GITHUB_ENV ) || echo "AVX512F: NO" | ||||||
|  |  | ||||||
|       - name: Test |       - name: Test | ||||||
|         id: cmake_test |         id: cmake_test | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 anzz1
					anzz1