-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RVV 1.0 integration testing on real hardware #1184
base: master
Are you sure you want to change the base?
Changes from 28 commits
7ad946b
486353c
e46ed6a
26177ae
d8e7efe
330d9d4
729f211
d6c3781
870f91c
a21ffaa
24c7d77
e67062a
71f2fdd
fd5e46e
675add8
6aec4f6
855e858
be84a57
0bf4816
3ead31b
72f0b56
fb3cb9c
4c86e29
2fd0a18
49d5ac2
753d212
fa792a1
351be2f
08cff65
64a11fd
9e68a0d
fa1e66e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Makefile | ||
|
||
# Define the directory to search for executables | ||
DIR := ../build/test | ||
|
||
# Define a shell command to find all executable files, excluding C/C++ files and directories | ||
EXEC_FILES := $(shell find $(DIR) -type f -executable ! -name '*.c' ! -name '*.cpp' ! -name '*.h') | ||
|
||
# Log file | ||
LOG_FILE := test.mak.log | ||
|
||
# Default target | ||
all: run | ||
|
||
# Target to run all executable files and log the output | ||
run: | ||
@echo "Running executables in $(DIR)..." > $(LOG_FILE)aaaa | ||
count=0; \ | ||
pass_count=0; \ | ||
fail_count=0; \ | ||
for file in $(EXEC_FILES); do \ | ||
echo "Executing $$file" | tee -a $(LOG_FILE); \ | ||
$$file >> $(LOG_FILE) 2>&1; \ | ||
case "$$?" in \ | ||
0) echo "PASSED" | tee -a $(LOG_FILE); \ | ||
pass_count=$$((pass_count + 1)) ;; \ | ||
*) echo "FAILED" | tee -a $(LOG_FILE); \ | ||
fail_count=$$((fail_count + 1)) ;; \ | ||
esac; \ | ||
echo ""; \ | ||
echo "" >> $(LOG_FILE); \ | ||
count=$$((count + 1)); \ | ||
done; \ | ||
echo "Total executables run: $$count" | tee -a $(LOG_FILE); \ | ||
echo "Total passed: $$pass_count" | tee -a $(LOG_FILE); \ | ||
echo "Total failed: $$fail_count" | tee -a $(LOG_FILE) | ||
echo "Complete log is saved in test.mak.log" | ||
|
||
# Clean target (example, not strictly necessary for this task) | ||
clean: | ||
@echo "Nothing to clean" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// All CI build results of this pipeline are available at: https://dash.cloud-v.co/blue/organizations/jenkins/simde/activity | ||
node('J-TESTVM-1') { | ||
stage('Clean Workspace') { | ||
cleanWs() | ||
} | ||
stage('Clone') { | ||
checkout scm | ||
} | ||
stage('Run system_info') { | ||
sh '''#!/bin/bash | ||
cat /proc/cpuinfo | ||
''' | ||
} | ||
stage('Run configure') { | ||
sh '''#!/bin/bash -l | ||
module load riscv64-gnu-glibc/14.1.1 | ||
riscv64-unknown-linux-gnu-gcc --version | ||
meson setup build --cross-file=./docker/cross-files/riscv64-gcc-13-unknown.cross -Db_lundef=false | ||
''' | ||
} | ||
stage('Run cross compile') { | ||
sh '''#!/bin/bash -l | ||
set -e | ||
module load riscv64-gnu-glibc/14.1.1 | ||
meson compile -C build -v | ||
if [ $? -ne 0 ]; then | ||
echo "Meson compile failed" | ||
exit 1 | ||
fi | ||
echo "export SIMDE_PATH=$(pwd)" > testvm_pwd.sh | ||
''' | ||
stash includes: 'testvm_pwd.sh', name: 'testvm_pwd.sh' | ||
} | ||
} | ||
node('J-K230-1') { | ||
stage('Clean Workspace') { | ||
cleanWs() | ||
} | ||
stage('Get Cross-compiled binaries') { | ||
unstash 'testvm_pwd.sh' | ||
withCredentials([sshUserPrivateKey(credentialsId: 'TESTVM_SSH_CREDENTIALS', keyFileVariable: 'SSH_KEY')]) { | ||
sh '''#!/bin/bash -v | ||
source testvm_pwd.sh | ||
echo "$SIMDE_PATH" | ||
ssh -i $SSH_KEY [email protected] -p 30013 "cd $SIMDE_PATH && tar cvf - ./*" | tar xvf - -C ./ | ||
''' | ||
} | ||
} | ||
stage('Run test') { | ||
sh'''#!/bin/bash | ||
cd .cloud-v | ||
make | ||
''' | ||
} | ||
} |
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,11 @@ | ||||||||||
[binaries] | ||||||||||
c = ['riscv64-unknown-linux-gnu-gcc', '-march=rv64gcv_zvl256b', '-mrvv-vector-bits=zvl', '-mabi=lp64d', '-Ofast'] | ||||||||||
cpp = ['riscv64-unknown-linux-gnu-g++', '-march=rv64gcv_zvl256b', '-mrvv-vector-bits=zvl', '-mabi=lp64d', '-Ofast'] | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Normally we don't build with
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the suggestion. I will try rebuilding it without |
||||||||||
ar = 'riscv64-unknown-linux-gnu-ar' | ||||||||||
strip = 'riscv64-unknown-linux-gnu-strip' | ||||||||||
|
||||||||||
[host_machine] | ||||||||||
system = 'linux' | ||||||||||
cpu_family = 'riscv64' | ||||||||||
cpu = 'riscv64' | ||||||||||
endian = 'little' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it need to be modified here? 13->14 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file could be renamed, but its contents don't mention the GCC version
https://github.com/simd-everywhere/simde/pull/1184/files#diff-8e5bdcf98aed37c1bff927573747ea9badeb2ae4ae8f5158aeae9abffd5baff6