fix win build
This commit is contained in:
parent
3a9480e4af
commit
68fd9f46bb
1 changed files with 12 additions and 10 deletions
|
@ -1,21 +1,23 @@
|
||||||
|
|
||||||
rem MIT license
|
:: MIT license
|
||||||
rem Copyright (C) 2024 Intel Corporation
|
:: Copyright (C) 2024 Intel Corporation
|
||||||
rem SPDX-License-Identifier: MIT
|
:: SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
@call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" intel64 --force
|
@call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" intel64 --force
|
||||||
|
|
||||||
rem for FP16
|
:: for FP16
|
||||||
rem cmake .. -DLLAMA_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DLLAMA_SYCL_F16=ON # faster for long-prompt inference
|
:: faster for long-prompt inference
|
||||||
|
:: cmake -G "MinGW Makefiles" .. -DLLAMA_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icx -DCMAKE_BUILD_TYPE=Release -DLLAMA_SYCL_F16=ON
|
||||||
|
|
||||||
rem for FP32
|
:: for FP32
|
||||||
cmake .. -DLLAMA_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icx -DCMAKE_BUILD_TYPE=Release
|
cmake -G "MinGW Makefiles" .. -DLLAMA_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icx -DCMAKE_BUILD_TYPE=Release
|
||||||
|
|
||||||
rem build example/main only
|
|
||||||
rem make main
|
|
||||||
|
|
||||||
rem build all binary
|
:: build example/main only
|
||||||
|
:: make main
|
||||||
|
|
||||||
|
:: build all binary
|
||||||
make
|
make
|
||||||
cd ..
|
cd ..
|
Loading…
Add table
Add a link
Reference in a new issue