forked from jngadiub/hls4ml
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into jmgd/sublayer-fix
- Loading branch information
Showing
30 changed files
with
1,718 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
pipeline { | ||
agent { | ||
docker { | ||
image 'hls4ml-with-vivado:latest' | ||
} | ||
} | ||
options { | ||
timeout(time: 3, unit: 'HOURS') | ||
} | ||
|
||
stages { | ||
stage('Keras to HLS') { | ||
parallel { | ||
stage('py36') { | ||
steps { | ||
dir(path: 'test') { | ||
sh '''#!/bin/bash | ||
. activate hls4ml-py36 | ||
cat keras-models.txt | xargs ./keras-to-hls.sh -p 3''' | ||
} | ||
} | ||
} | ||
stage('py27') { | ||
steps { | ||
dir(path: 'test') { | ||
sh '''#!/bin/bash | ||
. activate hls4ml-py27 | ||
cat keras-models.txt | xargs ./keras-to-hls.sh -p 2''' | ||
} | ||
} | ||
} | ||
} | ||
post { | ||
success { | ||
dir(path: 'test') { | ||
sh '''#!/bin/bash | ||
./py-diff.sh -r 2''' | ||
} | ||
} | ||
} | ||
} | ||
stage('C Simulation') { | ||
parallel { | ||
stage('2017.2') { | ||
when { | ||
allOf { | ||
environment name: 'USE_VIVADO_2017', value: '1'; | ||
environment name: 'TEST_SIMULATION', value: '1' | ||
} | ||
} | ||
steps { | ||
dir(path: 'test') { | ||
sh '''#!/bin/bash | ||
./build-prj.sh -i /opt/Xilinx -v 2017.2 -c -p 2''' | ||
} | ||
} | ||
} | ||
stage('2018.2') { | ||
when { | ||
allOf { | ||
environment name: 'USE_VIVADO_2018', value: '1'; | ||
environment name: 'TEST_SIMULATION', value: '1' | ||
} | ||
} | ||
steps { | ||
dir(path: 'test') { | ||
sh '''#!/bin/bash | ||
./build-prj.sh -i /opt/Xilinx -v 2018.2 -c -p 2''' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
stage('C/RTL Synthesis') { | ||
parallel { | ||
stage('2017.2') { | ||
when { | ||
allOf { | ||
environment name: 'USE_VIVADO_2017', value: '1'; | ||
environment name: 'TEST_SYNTHESIS', value: '1' | ||
} | ||
} | ||
steps { | ||
dir(path: 'test') { | ||
sh '''#!/bin/bash | ||
./build-prj.sh -i /opt/Xilinx -v 2017.2 -r -p 2''' | ||
} | ||
} | ||
} | ||
stage('2018.2') { | ||
when { | ||
allOf { | ||
environment name: 'USE_VIVADO_2018', value: '1'; | ||
environment name: 'TEST_SYNTHESIS', value: '1' | ||
} | ||
} | ||
steps { | ||
dir(path: 'test') { | ||
sh '''#!/bin/bash | ||
./build-prj.sh -i /opt/Xilinx -v 2018.2 -r -p 2''' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
stage('Report') { | ||
when { | ||
environment name: 'TEST_SYNTHESIS', value: '1' | ||
} | ||
steps { | ||
dir(path: 'test') { | ||
sh '''#!/bin/bash | ||
./gather-reports.sh -b''' | ||
} | ||
|
||
} | ||
} | ||
} | ||
post { | ||
always { | ||
dir(path: 'test') { | ||
sh '''#!/bin/bash | ||
./cleanup.sh''' | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.