Skip to content

Commit 91ea476

Browse files
authored
Merge pull request #3 from ewanwm/Fix_PyTorch_test_build
Fix py torch test build
2 parents 098ec16 + 107d229 commit 91ea476

File tree

3 files changed

+29
-19
lines changed

3 files changed

+29
-19
lines changed

.github/workflows/cmake-single-platform.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,23 @@ jobs:
2222

2323
steps:
2424
# this Action should follow steps to set up Python build environment
25+
- uses: actions/checkout@v4
26+
27+
- name: Set Flags
28+
run: export USE_CUDA=0
29+
30+
- name: Install Protobuf
31+
run: sudo apt install protobuf-compiler
32+
2533
- name: Install Python dependencies
2634
uses: py-actions/py-dependency-install@v4
2735
with:
2836
path: "PyTorch_requirements.txt"
2937

30-
- uses: actions/checkout@v4
31-
3238
- name: Configure CMake
3339
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
3440
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
35-
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
41+
run: cmake -DCMAKE_PREFIX_PATH=`python3 -c 'import torch;print(torch.utils.cmake_prefix_path)'` -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
3642

3743
- name: Build
3844
# Build your program with the given configuration

PyTorch_requirements.txt

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
attrs==23.2.0+computecanada
1+
attrs==23.2.0
22
filelock==3.15.4
3-
jinja2==3.1.4+computecanada
4-
jsonschema-specifications==2023.12.1+computecanada
5-
MarkupSafe==2.1.3+computecanada
6-
mpmath==1.3.0+computecanada
7-
networkx==3.2.1+computecanada
8-
platformdirs==4.2.2+computecanada
9-
pyzmq==25.1.1+computecanada
10-
referencing==0.35.1+computecanada
11-
rpds-py==0.10.0+computecanada
12-
six==1.16.0+computecanada
13-
sympy==1.12.1+computecanada
14-
torch==2.0.1+computecanada
15-
tornado==6.3.3+computecanada
16-
traitlets==5.14.3+computecanada
17-
typing-extensions==4.12.2+computecanada
3+
jinja2==3.1.4
4+
jsonschema-specifications==2023.12.1
5+
MarkupSafe==2.1.3
6+
mpmath==1.3.0
7+
networkx==3.2.1
8+
platformdirs==4.2.2
9+
pyzmq==25.1.1
10+
referencing==0.35.1
11+
rpds-py==0.10.0
12+
six==1.16.0
13+
sympy==1.12.1
14+
15+
--find-links https://download.pytorch.org/whl/torch_stable.html
16+
torch==2.0.1+cpu
17+
18+
tornado==6.3.3
19+
traitlets==5.14.3
20+
typing-extensions==4.12.2
1821
zipp==3.19.2

nuTens/propagator/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)