-
Notifications
You must be signed in to change notification settings - Fork 12
53 lines (45 loc) · 1.55 KB
/
customized-win-shells.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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
auto-update-conda: true
python-version: 3.12
channels: conda-forge,nvidia/label/cuda-12.6.3
- name: Install minimal packages
shell: bash -el {0}
run: |
conda install cuda-nvcc make
- 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"
ls -al
LIB /VERBOSE
nvcc --version
make cuda
ls -al
make
ls -al
- name: Run Command Prompt
shell: cmd
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"
make cuda
ls -al
make wrap
# - 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