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
name: customized-win-shells | |
on: [push] | |
jobs: | |
customized-win-shells: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: magtense-env | |
python-version: 3.12 | |
channels: conda-forge,nvidia/label/cuda-12.6.3,https://software.repos.intel.com/python/conda/ | |
auto-activate-base: false | |
- name: Install minimal packages | |
shell: bash -el {0} | |
run: | | |
conda install cuda-nvcc libcusparse-dev libcublas-dev cuda-cudart-dev make vs2022_win-64 "dpcpp_win-64" | |
- name: Run Command Prompt | |
shell: bash -el {0} | |
working-directory: ${{ github.workspace }}/source/MagTenseFortranCuda/cuda | |
run: | | |
nvcc -c MagTenseCudaBlas.cu -ccbin "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.42.34433\bin\Hostx64\x64" -o MagTenseCudaBlas.o | |
- name: Run Developer PowerShell for VS 2022 | |
shell: pwsh -NoExit -ExecutionPolicy ByPass -File {0} | |
run: | | |
cd "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\" | |
.\Launch-VsDevShell.ps1 | |
cd ${{ github.workspace }}/source/MagTenseFortranCuda/cuda | |
make wrap | |
ls -al | |
- name: Run x64 Native Tools Command Prompt for VS 2022 | |
shell: cmd /k "{0}" -arch=amd64 -host_arch=x64 | |
working-directory: ${{ github.workspace }}/source/MagTenseFortranCuda/cuda | |
run: | | |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" | |
nvcc && make cuda | |
# - name: Run Developer PowerShell for VS 2022 | |
# shell: pwsh -NoExit -ExecutionPolicy ByPass -File {0} | |
# run: | | |
# cd "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\" | |
# .\Launch-VsDevShell.ps1 | |
# cd ${{ github.workspace }}/python/src/magtense/lib/ | |
# ls | |
# LIB /VERBOSE |