go_matmul_perf/build.bat

32 lines
588 B
Batchfile

@echo off
setlocal
set MKL_ROOT=E:\lib\intel_mkl\mkl\2025.3
set COMPILER_ROOT=E:\lib\intel_mkl\compiler\2025.3
set SRC=%1
if "%SRC%"=="" (
echo Usage: build.bat source.c
exit /b 1
)
set OUT=%~n1.exe
pushd build
del /F /Q *
clang ../src/%SRC% -o %OUT% ^
-fopenmp ^
-I"%MKL_ROOT%\include" ^
-L"%MKL_ROOT%\lib" ^
-L"%COMPILER_ROOT%\lib" ^
-lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core ^
-llibiomp5md ^
-Wall
popd
echo Build complete: build/%OUT%
set PATH=%PATH%;E:\lib\intel_mkl\mkl\2025.3\bin
set PATH=%PATH%;E:\lib\intel_mkl\compiler\2025.3\bin