Skip to content

Commit 09862be

Browse files
authored
Merge branch 'master' into master
2 parents cc56e89 + 332e8ee commit 09862be

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ on: [push, pull_request]
1717

1818
jobs:
1919
setup:
20-
runs-on: ubuntu-20.04
20+
runs-on: ubuntu-22.04
2121

2222
steps:
2323
- name: Checkout code
24-
uses: actions/checkout@v2
24+
uses: actions/checkout@v4
2525
with:
2626
submodules: recursive
2727

2828
- name: Cache Toolchain Directory
2929
id: cache-toolchain
30-
uses: actions/cache@v3
30+
uses: actions/cache@v4
3131
with:
3232
path: tools
3333
key: ${{ runner.os }}-toolchain-v0.1
@@ -36,7 +36,7 @@ jobs:
3636
3737
- name: Cache Third Party Directory
3838
id: cache-thirdparty
39-
uses: actions/cache@v3
39+
uses: actions/cache@v4
4040
with:
4141
path: third_party
4242
key: ${{ runner.os }}-thirdparty-v0.1
@@ -63,23 +63,23 @@ jobs:
6363
make -C third_party > /dev/null
6464
6565
build:
66-
runs-on: ubuntu-20.04
66+
runs-on: ubuntu-22.04
6767
needs: setup
6868
strategy:
6969
matrix:
7070
xlen: [32, 64]
7171

7272
steps:
7373
- name: Checkout code
74-
uses: actions/checkout@v2
74+
uses: actions/checkout@v4
7575

7676
- name: Install Dependencies
7777
run: |
7878
sudo bash ./ci/install_dependencies.sh
7979
8080
- name: Cache Toolchain Directory
8181
id: cache-toolchain
82-
uses: actions/cache@v3
82+
uses: actions/cache@v4
8383
with:
8484
path: tools
8585
key: ${{ runner.os }}-toolchain-v0.1
@@ -88,7 +88,7 @@ jobs:
8888
8989
- name: Cache Third Party Directory
9090
id: cache-thirdparty
91-
uses: actions/cache@v3
91+
uses: actions/cache@v4
9292
with:
9393
path: third_party
9494
key: ${{ runner.os }}-thirdparty-v0.1
@@ -112,7 +112,7 @@ jobs:
112112
path: build${{ matrix.xlen }}
113113

114114
tests:
115-
runs-on: ubuntu-20.04
115+
runs-on: ubuntu-22.04
116116
needs: build
117117
strategy:
118118
fail-fast: false
@@ -122,15 +122,15 @@ jobs:
122122

123123
steps:
124124
- name: Checkout code
125-
uses: actions/checkout@v2
125+
uses: actions/checkout@v4
126126

127127
- name: Install Dependencies
128128
run: |
129129
sudo bash ./ci/install_dependencies.sh
130130
131131
- name: Cache Toolchain Directory
132132
id: cache-toolchain
133-
uses: actions/cache@v3
133+
uses: actions/cache@v4
134134
with:
135135
path: tools
136136
key: ${{ runner.os }}-toolchain-v0.1
@@ -139,7 +139,7 @@ jobs:
139139
140140
- name: Cache Third Party Directory
141141
id: cache-thirdparty
142-
uses: actions/cache@v3
142+
uses: actions/cache@v4
143143
with:
144144
path: third_party
145145
key: ${{ runner.os }}-thirdparty-v0.1
@@ -167,7 +167,7 @@ jobs:
167167
fi
168168
169169
complete:
170-
runs-on: ubuntu-20.04
170+
runs-on: ubuntu-22.04
171171
needs: tests
172172

173173
steps:

ci/install_dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ check_gcc_version() {
3131
apt-get update -y
3232

3333
# install system dependencies
34-
apt-get install -y build-essential valgrind libstdc++6 binutils python3 uuid-dev ccache cmake
34+
apt-get install -y build-essential valgrind libstdc++6 binutils python3 uuid-dev ccache cmake libffi7
3535

3636
# Check and install GCC 11 if necessary
3737
if check_gcc_version; then

kernel/include/vx_intrinsics.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -222,21 +222,21 @@ inline void vx_fence() {
222222
}
223223

224224
//Matrix load
225-
inline void vx_matrix_load(unsigned dest, unsigned addr)
225+
inline void vx_matrix_load(unsigned dest, unsigned addr)
226226
{
227-
asm volatile (".insn i 0x7b, 0, x0, %0(%1)" :: "i"(dest), "r"(addr));
227+
__asm__ volatile (".insn i 0x7b, 0, x0, %0(%1)" :: "i"(dest), "r"(addr));
228228
}
229229

230230
//Matrix Store
231-
inline void vx_matrix_store(unsigned addr)
231+
inline void vx_matrix_store(unsigned addr)
232232
{
233-
asm volatile (".insn i 0x7b, 1, x0, 0(%0)" :: "r"(addr));
233+
__asm__ volatile (".insn i 0x7b, 1, x0, 0(%0)" :: "r"(addr));
234234
}
235235

236236
//Matrix Mul
237-
inline void vx_matrix_mul()
237+
inline void vx_matrix_mul()
238238
{
239-
asm volatile (".insn i 0x7b, 2, x0, 0(x0)");
239+
__asm__ volatile (".insn i 0x7b, 2, x0, 0(x0)");
240240
}
241241

242242
#ifdef __cplusplus

tests/opencl/common.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ VX_CFLAGS += -fno-rtti -fno-exceptions -nostartfiles -nostdlib -fdata-sections
3131
VX_CFLAGS += -I$(ROOT_DIR)/hw -I$(VORTEX_HOME)/kernel/include -DXLEN_$(XLEN) -DNDEBUG
3232
VX_CFLAGS += -Xclang -target-feature -Xclang +vortex
3333
VX_CFLAGS += -Xclang -target-feature -Xclang +zicond
34-
VX_CFLAGS += -mllvm -disable-loop-idiom-all
34+
VX_CFLAGS += -mllvm -disable-loop-idiom-all # disable memset/memcpy loop replacement
3535
#VX_CFLAGS += -mllvm -vortex-branch-divergence=0
3636
#VX_CFLAGS += -mllvm -print-after-all
3737

0 commit comments

Comments
 (0)