Skip to content

Commit

Permalink
Merge branch 'develop', remote-tracking branch 'origin' into refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
hikettei committed May 25, 2024
3 parents b58cc79 + f7eb206 + 42bcaaf commit 32bb564
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 45 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/Cl.yml

This file was deleted.

111 changes: 111 additions & 0 deletions .github/workflows/test_on_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
- develop

jobs:
# TODO: Metal/CUDA Runtime
UnitTest-CPUTensor:
# TODO: Metal/CUDA Runtime
name: ${{ matrix.lisp }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
lisp: [sbcl-bin/2.3.9]
os: [ubuntu-latest]
target:
- normal
archcpu:
- AVX2

steps:
- uses: actions/checkout@v1
- name: Setting up environments
env:
LISP: ${{ matrix.lisp }}
run: |
curl -L https://raw.githubusercontent.com/roswell/roswell/master/scripts/install-for-ci.sh | sh
- name: Update $PATH
run: |
echo $PATH
echo "PATH=$HOME/bin:$PATH" >> $GITHUB_ENV
- name: Check $PATH
run: echo $PATH

- name: Installing OpenBLAS
run: |
sudo apt install libblas-dev
- name: Unittest (CPU+Lisp)
run: |
ros config set dynamic-space-size 4gb
./roswell/waffe2.ros test -b CPUTensor -b LispTensor
UnitTest-LispTensor:
name: ${{ matrix.lisp }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
lisp: [sbcl-bin/2.3.9]
os: [ubuntu-latest]
target:
- normal

steps:
- uses: actions/checkout@v1
- name: Setting up environments
env:
LISP: ${{ matrix.lisp }}
run: |
curl -L https://raw.githubusercontent.com/roswell/roswell/master/scripts/install-for-ci.sh | sh
- name: Update $PATH
run: |
echo $PATH
echo "PATH=$HOME/bin:$PATH" >> $GITHUB_ENV
- name: Check $PATH
run: echo $PATH
- name: Unittest (Lisp+CPU)
run: |
ros config set dynamic-space-size 4gb
./roswell/waffe2.ros test -b LispTensor -b CPUTensor
Test-Classification-CPU:
- uses: actions/checkout@v1
- name: Setting up environments
env:
LISP: ${{ matrix.lisp }}
run: |
curl -L https://raw.githubusercontent.com/roswell/roswell/master/scripts/install-for-ci.sh | sh
- name: Update $PATH
run: |
echo $PATH
echo "PATH=$HOME/bin:$PATH" >> $GITHUB_ENV
- name: Check $PATH
run: echo $PATH

- name: Installing OpenBLAS
run: |
sudo apt install libblas-dev
- name: Set up Python
id: set_up_python_python_ci
uses: actions/setup-python@v4
with:
python-version: "3.8"

- name: Downloading assets
run: |
pip install torch torchvision numpy
cd ./examples/mnist
python train_data.py
cd ../../
- name: Training (CPUTensor)
run: |
ros config set dynamic-space-size 4gb
./roswell/waffe2.ros demo --example mnist -b CPUTensor -b LispTensor

2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</p>
</p>

[![CI](https://github.com/hikettei/cl-waffe2/actions/workflows/Cl.yml/badge.svg?branch=master)](https://github.com/hikettei/cl-waffe2/actions/workflows/Cl.yml)
[![CI](https://github.com/hikettei/cl-waffe2/actions/workflows/test_on_push.yml/badge.svg?branch=master)](https://github.com/hikettei/cl-waffe2/actions/workflows/test_on_push.yml)

# cl-waffe2

Expand Down

0 comments on commit 32bb564

Please sign in to comment.