-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from deslaughter/win-oneapi
Attempt to build OpenFAST on Windows using Intel oneAPI
- Loading branch information
Showing
6 changed files
with
42 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
c_compiler: | ||
- vs2019 | ||
channel_sources: | ||
- conda-forge | ||
channel_targets: | ||
- conda-forge main | ||
openblas: | ||
- 0.3.* | ||
cxx_compiler: | ||
- vs2019 | ||
target_platform: | ||
- win-64 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,32 @@ | ||
@echo on | ||
|
||
mkdir build | ||
cd build | ||
curl.exe --output webimage.exe --url https://registrationcenter-download.intel.com/akdlm/IRC_NAS/62641e01-1e8d-4ace-91d6-ae03f7f8a71f/w_BaseKit_p_2024.0.0.49563_offline.exe | ||
start /b /wait webimage.exe -s -x -f webimage_extracted --log extract.log | ||
del webimage.exe | ||
webimage_extracted\bootstrapper.exe -s --action install --components=intel.oneapi.win.mkl.devel --eula=accept -p=NEED_VS2017_INTEGRATION=0 -p=NEED_VS2019_INTEGRATION=0 -p=NEED_VS2022_INTEGRATION=0 --log-dir=. | ||
|
||
curl.exe --output webimage2.exe --url https://registrationcenter-download.intel.com/akdlm/IRC_NAS/5b36181e-4974-4733-91c7-0c10c54900a5/w_HPCKit_p_2024.0.0.49588_offline.exe | ||
start /b /wait webimage2.exe -s -x -f webimage2_extracted --log extract.log | ||
del webimage2.exe | ||
webimage2_extracted\bootstrapper.exe -s --action install --components=intel.oneapi.win.ifort-compiler --eula=accept -p=NEED_VS2017_INTEGRATION=0 -p=NEED_VS2019_INTEGRATION=0 -p=NEED_VS2022_INTEGRATION=0 --log-dir=. | ||
|
||
set LDFLAGS="-static" | ||
@call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" | ||
|
||
mkdir build | ||
|
||
cmake ^ | ||
-S %SRC_DIR% ^ | ||
-B . ^ | ||
-G "MinGW Makefiles" ^ | ||
-B build ^ | ||
-G "Ninja" ^ | ||
-DCMAKE_BUILD_TYPE="Release" ^ | ||
-DDOUBLE_PRECISION=OFF ^ | ||
-DBLA_VENDOR=OpenBLAS ^ | ||
-DBLA_STATIC=ON ^ | ||
-DCMAKE_PREFIX_PATH=%LIBRARY_PREFIX% ^ | ||
-DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ | ||
-DBUILD_FASTFARM=ON ^ | ||
-DCMAKE_C_COMPILER=gcc.exe ^ | ||
-DCMAKE_CXX_COMPILER=g++.exe ^ | ||
-DCMAKE_Fortran_COMPILER=gfortran.exe | ||
-DCMAKE_Fortran_COMPILER=ifort ^ | ||
-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded ^ | ||
-DBLA_STATIC=ON ^ | ||
-DDOUBLE_PRECISION=OFF ^ | ||
-DBUILD_FASTFARM=ON | ||
if errorlevel 1 exit /b 1 | ||
|
||
cmake --build . -j 2 | ||
cmake --build build --target install -j %CPU_COUNT% | ||
if errorlevel 1 exit /b 1 | ||
|
||
cmake --install . | ||
if errorlevel 1 exit /b 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
#!/bin/bash | ||
|
||
if [[ "$CONDA_BUILD_CROSS_COMPILATION" == 1 && $target_platform == "osx-arm64" ]]; then | ||
export LDFLAGS="${LDFLAGS:-} -lquadmath" | ||
fi | ||
|
||
mkdir build | ||
cd build | ||
|
||
cmake \ | ||
-S ${SRC_DIR} \ | ||
-B . \ | ||
-DDOUBLE_PRECISION=OFF \ | ||
-B build \ | ||
-G "Unix Makefiles" \ | ||
-DCMAKE_BUILD_TYPE="Release" \ | ||
-DCMAKE_INSTALL_PREFIX=${PREFIX} \ | ||
-DBUILD_FASTFARM=ON \ | ||
-DDOUBLE_PRECISION=OFF \ | ||
-DBLA_VENDOR=OpenBLAS \ | ||
-DBLA_STATIC=ON | ||
-DBLA_STATIC=ON \ | ||
-DBUILD_FASTFARM=ON | ||
|
||
make -j"${CPU_COUNT}" install | ||
cmake --build build --target install -j ${CPU_COUNT} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters