-
Notifications
You must be signed in to change notification settings - Fork 300
Update test CMakeLists to add new tests automatically and add Jenkins stage for tests #88
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
Merged
Merged
Changes from 17 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
1f8ff70
add docker file and make default target buildable
JehandadKhan b824a5a
add Jenkinsfile
JehandadKhan 91d41de
remove empty env block
JehandadKhan 1734cb6
fix package stage
JehandadKhan 211708b
remove render group from docker run
JehandadKhan a9eabe4
clean up Jenkins file
JehandadKhan f619835
add cppcheck as dev dependency
JehandadKhan 659f920
update cmake file
JehandadKhan 75f9b7d
Add profiler build stage
JehandadKhan d911ba8
Merge branch 'develop' into jd/docker_init
JehandadKhan 8148c43
add hip_version config file for reduction operator
JehandadKhan 9e3c055
correct jenkins var name
JehandadKhan cb754aa
Build release instead of debug
JehandadKhan 2785cd5
Update test CMakeLists.txt
JehandadKhan e8b888b
reduce compile threads to prevent compiler crash
JehandadKhan bdd8e86
add optional debug stage, update second test
JehandadKhan 513a1b0
remove old test target
JehandadKhan 0133140
fix tests to return proper results and self review
JehandadKhan 95d6c19
Merge branch 'develop' into jd/ctest_init
JehandadKhan 8b847ed
Fix package name and make test run without args
JehandadKhan 1664db4
Merge remote-tracking branch 'origin/develop' into jd/ctest_init
9da277b
Merge remote-tracking branch 'origin/develop' into jd/ctest_init
93e5921
Merge remote-tracking branch 'origin/develop' into jd/ctest_init
9e01117
Merge remote-tracking branch 'origin/develop' into jd/ctest_init
4afedef
change Dockerfile to ues rocm4.3.1
c7d1a52
remove parallelism from build
JehandadKhan 8b0d07b
Lower paralellism
JehandadKhan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,101 @@ | ||
| FROM ubuntu:18.04 | ||
|
|
||
| ARG ROCMVERSION=4.5 | ||
| ARG OSDB_BKC_VERSION | ||
|
|
||
| RUN set -xe | ||
|
|
||
| ARG BUILD_THREADS=8 | ||
| ARG DEB_ROCM_REPO=http://repo.radeon.com/rocm/apt/.apt_$ROCMVERSION/ | ||
| # Add rocm repository | ||
| RUN apt-get update | ||
| RUN apt-get install -y wget gnupg | ||
| RUN wget -qO - http://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - | ||
| RUN if ! [ -z $OSDB_BKC_VERSION ]; then \ | ||
| echo "Using BKC VERISION: $OSDB_BKC_VERSION";\ | ||
| sh -c "echo deb [arch=amd64 trusted=yes] http://compute-artifactory.amd.com/artifactory/list/rocm-osdb-deb/ compute-rocm-dkms-no-npi-hipclang ${OSDB_BKC_VERSION} > /etc/apt/sources.list.d/rocm.list" ;\ | ||
| cat /etc/apt/sources.list.d/rocm.list;\ | ||
| else \ | ||
| sh -c "echo deb [arch=amd64] $DEB_ROCM_REPO ubuntu main > /etc/apt/sources.list.d/rocm.list" ;\ | ||
| fi | ||
| RUN wget --no-check-certificate -qO - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add - | ||
| RUN sh -c "echo deb https://apt.kitware.com/ubuntu/ bionic main | tee -a /etc/apt/sources.list" | ||
|
|
||
| # ADD requirements.txt requirements.txt | ||
| # Install dependencies | ||
| RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-unauthenticated \ | ||
| apt-utils \ | ||
| sshpass \ | ||
| build-essential \ | ||
| cmake-data=3.15.1-0kitware1 \ | ||
| cmake=3.15.1-0kitware1 \ | ||
| curl \ | ||
| doxygen \ | ||
| g++ \ | ||
| gdb \ | ||
| git \ | ||
| hip-rocclr \ | ||
| jq \ | ||
| lcov \ | ||
| libelf-dev \ | ||
| libncurses5-dev \ | ||
| libnuma-dev \ | ||
| libpthread-stubs0-dev \ | ||
| llvm-amdgpu \ | ||
| miopengemm \ | ||
| pkg-config \ | ||
| python \ | ||
| python3 \ | ||
| python-dev \ | ||
| python3-dev \ | ||
| python-pip \ | ||
| python3-pip \ | ||
| software-properties-common \ | ||
| sqlite3 \ | ||
| wget \ | ||
| rocm-dev \ | ||
| rocm-device-libs \ | ||
| rocm-opencl \ | ||
| rocm-opencl-dev \ | ||
| rocm-cmake \ | ||
| rocblas \ | ||
| vim \ | ||
| zlib1g-dev \ | ||
| openssh-server \ | ||
| kmod \ | ||
| mysql-client && \ | ||
| apt-get clean && \ | ||
| rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # RUN pip3 install --default-timeout=100000 -r requirements.txt | ||
|
|
||
| # Setup ubsan environment to printstacktrace | ||
| RUN ln -s /usr/bin/llvm-symbolizer-3.8 /usr/local/bin/llvm-symbolizer | ||
| ENV UBSAN_OPTIONS=print_stacktrace=1 | ||
|
|
||
| # Install an init system | ||
| RUN wget https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64.deb | ||
| RUN dpkg -i dumb-init_*.deb && rm dumb-init_*.deb | ||
|
|
||
| # Install cget | ||
| RUN pip install cget | ||
|
|
||
| # Install rclone | ||
| RUN pip install https://github.com/pfultz2/rclone/archive/master.tar.gz | ||
|
|
||
| ARG PREFIX=/opt/rocm | ||
| # Install dependencies | ||
| RUN cget install pfultz2/rocm-recipes | ||
| # Install rbuild | ||
| RUN pip3 install https://github.com/RadeonOpenCompute/rbuild/archive/6d78a0553babdaea8d2da5de15cbda7e869594b8.tar.gz | ||
| # Setup ubsan environment to printstacktrace | ||
| ENV UBSAN_OPTIONS=print_stacktrace=1 | ||
|
|
||
| ENV LC_ALL=C.UTF-8 | ||
| ENV LANG=C.UTF-8 | ||
| ADD rbuild.ini /rbuild.ini | ||
| ADD dev-requirements.txt dev-requirements.txt | ||
| RUN rbuild prepare -s develop -d $PREFIX | ||
| RUN groupadd -f render | ||
| # RUN cget install -f min-requirements.txt | ||
| # RUN CXXFLAGS='-isystem $PREFIX/include' cget install -f ./mlir-requirements.txt |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.