Skip to content
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

Suppress MLIR ubsan errors #3198

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def cmake_build(Map conf=[:]){

def compiler = conf.get("compiler","/opt/rocm/llvm/bin/clang++")
def make_targets = conf.get("make_targets","check")
def debug_flags = "-g -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=undefined -Wno-option-ignored " + conf.get("extradebugflags", "")
def debug_flags = "-g -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=undefined -Wno-option-ignored -fsanitize-ignorelist=\$(pwd)/../UBSanIgnoreList.txt" + conf.get("extradebugflags", "")
def build_envs = "CTEST_PARALLEL_LEVEL=4 " + conf.get("build_env","")
def prefixpath = conf.get("prefixpath","/opt/rocm")
def mlir_args = " -DMIOPEN_USE_MLIR=" + conf.get("mlir_build", "ON")
Expand Down Expand Up @@ -73,9 +73,9 @@ def cmake_build(Map conf=[:]){
}

if(conf.get("codecov", false)){ //Need
setup_args = " -DCMAKE_BUILD_TYPE=debug -DCMAKE_CXX_FLAGS_DEBUG='${debug_flags} -fprofile-arcs -ftest-coverage' -DCODECOV_TEST=On " + setup_args
setup_args = " -DCMAKE_BUILD_TYPE=debug -DCMAKE_CXX_FLAGS_DEBUG=\"${debug_flags} -fprofile-arcs -ftest-coverage\" -DCODECOV_TEST=On " + setup_args
}else if(build_type_debug){
setup_args = " -DCMAKE_BUILD_TYPE=debug -DCMAKE_CXX_FLAGS_DEBUG='${debug_flags}'" + setup_args
setup_args = " -DCMAKE_BUILD_TYPE=debug -DCMAKE_CXX_FLAGS_DEBUG=\"${debug_flags}\"" + setup_args
}else{
setup_args = " -DCMAKE_BUILD_TYPE=release" + setup_args
}
Expand Down
1 change: 1 addition & 0 deletions UBSanIgnoreList.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src:*/shared_ptr_base.h
2 changes: 1 addition & 1 deletion test/nightlies/JenkinsfileNightlyAux
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def buildJob(compiler, flags, image, test, testargs){
timeout(time: 8, unit: 'HOURS')
{
sh "echo \$HSA_ENABLE_SDMA"
sh "rm -rf build; mkdir build; cd build; export PATH=/opt/rocm/bin:$PATH; CXX=${compiler} CXXFLAGS='-Werror' cmake -DMIOPEN_GPU_SYNC=On -DMIOPEN_TEST_FLAGS='--disable-verification-cache' -DCMAKE_CXX_FLAGS_DEBUG='-g -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=undefined' ${flags} .."
sh "rm -rf build; mkdir build; cd build; export PATH=/opt/rocm/bin:$PATH; CXX=${compiler} CXXFLAGS='-Werror' cmake -DMIOPEN_GPU_SYNC=On -DMIOPEN_TEST_FLAGS='--disable-verification-cache' -DCMAKE_CXX_FLAGS_DEBUG=\"-g -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=undefined -fsanitize-ignorelist=\$(pwd)/../UBSanIgnoreList.txt \" ${flags} .."
sh "cd build; CTEST_PARALLEL_LEVEL=4 MIOPEN_VERIFY_CACHE_PATH=/var/jenkins/.cache/miopen/vcache dumb-init make -j\$(nproc) ${test}"
sh "MIOPEN_LOG_LEVEL=5 ./build/bin/${test} ${testargs}"

Expand Down
2 changes: 1 addition & 1 deletion test/nightlies/JenkinsfileNightlyConv2D
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def buildJob(compiler, flags, image, test, testargs){
timeout(time: 8, unit: 'HOURS')
{
sh "echo \$HSA_ENABLE_SDMA"
sh "rm -rf build; mkdir build; cd build; export PATH=/opt/rocm/bin:$PATH; CXX=${compiler} CXXFLAGS='-Werror' cmake -DMIOPEN_GPU_SYNC=On -DMIOPEN_TEST_FLAGS='--disable-verification-cache' -DCMAKE_CXX_FLAGS_DEBUG='-g -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=undefined' ${flags} .."
sh "rm -rf build; mkdir build; cd build; export PATH=/opt/rocm/bin:$PATH; CXX=${compiler} CXXFLAGS='-Werror' cmake -DMIOPEN_GPU_SYNC=On -DMIOPEN_TEST_FLAGS='--disable-verification-cache' -DCMAKE_CXX_FLAGS_DEBUG=\"-g -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=undefined -fsanitize-ignorelist=\$(pwd)/../UBSanIgnoreList.txt \" ${flags} .."
sh "cd build; CTEST_PARALLEL_LEVEL=4 MIOPEN_VERIFY_CACHE_PATH=/var/jenkins/.cache/miopen/vcache dumb-init make -j\$(nproc) ${test}"
sh "MIOPEN_LOG_LEVEL=6 ./build/bin/${test} ${testargs}"

Expand Down
2 changes: 1 addition & 1 deletion test/nightlies/JenkinsfileNightlyConv2Daux
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def buildJob(compiler, flags, image, test, testargs){
timeout(time: 8, unit: 'HOURS')
{
sh "echo \$HSA_ENABLE_SDMA"
sh "rm -rf build; mkdir build; cd build; export PATH=/opt/rocm/bin:$PATH; CXX=${compiler} CXXFLAGS='-Werror' cmake -DMIOPEN_GPU_SYNC=On -DMIOPEN_TEST_FLAGS='--disable-verification-cache' -DCMAKE_CXX_FLAGS_DEBUG='-g -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=undefined' ${flags} .."
sh "rm -rf build; mkdir build; cd build; export PATH=/opt/rocm/bin:$PATH; CXX=${compiler} CXXFLAGS='-Werror' cmake -DMIOPEN_GPU_SYNC=On -DMIOPEN_TEST_FLAGS='--disable-verification-cache' -DCMAKE_CXX_FLAGS_DEBUG=\"-g -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=undefined -fsanitize-ignorelist=\$(pwd)/../UBSanIgnoreList.txt \" ${flags} .."
sh "cd build; CTEST_PARALLEL_LEVEL=4 MIOPEN_VERIFY_CACHE_PATH=/var/jenkins/.cache/miopen/vcache dumb-init make -j\$(nproc) ${test}"
sh "MIOPEN_LOG_LEVEL=6 ./build/bin/${test} ${testargs}"

Expand Down
2 changes: 1 addition & 1 deletion test/nightlies/JenkinsfileNightlyFastFullConv2D
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def buildJob(compiler, flags, image, test, testargs){
timeout(time: 12, unit: 'HOURS')
{
sh "echo \$HSA_ENABLE_SDMA"
sh "rm -rf build; mkdir build; cd build; CXX=${compiler} CXXFLAGS='-Werror' cmake -DMIOPEN_GPU_SYNC=On -DMIOPEN_TEST_FLAGS='--disable-verification-cache' -DCMAKE_CXX_FLAGS_DEBUG='-g -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=undefined' ${flags} .."
sh "rm -rf build; mkdir build; cd build; CXX=${compiler} CXXFLAGS='-Werror' cmake -DMIOPEN_GPU_SYNC=On -DMIOPEN_TEST_FLAGS='--disable-verification-cache' -DCMAKE_CXX_FLAGS_DEBUG=\"-g -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=undefined -fsanitize-ignorelist=\$(pwd)/../UBSanIgnoreList.txt\" ${flags} .."
sh "cd build; CTEST_PARALLEL_LEVEL=4 MIOPEN_VERIFY_CACHE_PATH=/var/jenkins/.cache/miopen/vcache dumb-init make -j\$(nproc) ${test}"
sh "MIOPEN_ENABLE_LOGGING_CMD=1 MIOPEN_LOG_LEVEL=6 ./build/bin/${test} ${testargs}"

Expand Down
2 changes: 1 addition & 1 deletion test/nightlies/JenkinsfileNightlyFusions
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def buildJob(compiler, flags, image, test, testargs){
timeout(time: 8, unit: 'HOURS')
{
sh "echo \$HSA_ENABLE_SDMA"
sh "rm -rf build; mkdir build; cd build; export PATH=/opt/rocm/bin:$PATH; CXX=${compiler} CXXFLAGS='-Werror' cmake -DMIOPEN_GPU_SYNC=On -DMIOPEN_TEST_FLAGS='--disable-verification-cache' -DCMAKE_CXX_FLAGS_DEBUG='-g -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=undefined' ${flags} .."
sh "rm -rf build; mkdir build; cd build; export PATH=/opt/rocm/bin:$PATH; CXX=${compiler} CXXFLAGS='-Werror' cmake -DMIOPEN_GPU_SYNC=On -DMIOPEN_TEST_FLAGS='--disable-verification-cache' -DCMAKE_CXX_FLAGS_DEBUG=\"-g -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=undefined -fsanitize-ignorelist=\$(pwd)/../UBSanIgnoreList.txt\" ${flags} .."
sh "cd build; CTEST_PARALLEL_LEVEL=4 MIOPEN_VERIFY_CACHE_PATH=/var/jenkins/.cache/miopen/vcache dumb-init make -j\$(nproc) ${test}"
sh "MIOPEN_LOG_LEVEL=5 ./build/bin/${test} ${testargs}"

Expand Down
2 changes: 1 addition & 1 deletion test/nightlies/JenkinsfileNightlyRNN
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def buildJob(compiler, flags, image, test, testargs){
timeout(time: 8, unit: 'HOURS')
{
sh "echo \$HSA_ENABLE_SDMA"
sh "rm -rf build; mkdir build; cd build; export PATH=/opt/rocm/bin:$PATH; CXX=${compiler} CXXFLAGS='-Werror' cmake -DMIOPEN_GPU_SYNC=On -DMIOPEN_TEST_FLAGS='--disable-verification-cache' -DCMAKE_CXX_FLAGS_DEBUG='-g -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=undefined' ${flags} .."
sh "rm -rf build; mkdir build; cd build; export PATH=/opt/rocm/bin:$PATH; CXX=${compiler} CXXFLAGS='-Werror' cmake -DMIOPEN_GPU_SYNC=On -DMIOPEN_TEST_FLAGS='--disable-verification-cache' -DCMAKE_CXX_FLAGS_DEBUG=\"-g -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=undefined -fsanitize-ignorelist=\$(pwd)/../UBSanIgnoreList.txt\" ${flags} .."
sh "cd build; CTEST_PARALLEL_LEVEL=4 MIOPEN_VERIFY_CACHE_PATH=/var/jenkins/.cache/miopen/vcache dumb-init make -j\$(nproc) ${test}"
sh "MIOPEN_LOG_LEVEL=5 ./build/bin/${test} ${testargs}"

Expand Down
2 changes: 1 addition & 1 deletion test/nightlies/JenkinsfileNightlyReduce
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def buildJob(compiler, flags, image, test, testargs){
timeout(time: 6, unit: 'HOURS')
{
sh "echo \$HSA_ENABLE_SDMA"
sh "rm -rf build; mkdir build; cd build; export PATH=/opt/rocm/bin:$PATH; CXX=${compiler} CXXFLAGS='-Werror' cmake -DMIOPEN_GPU_SYNC=On -DMIOPEN_TEST_FLAGS='--disable-verification-cache' -DCMAKE_CXX_FLAGS_DEBUG='-g -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=undefined' ${flags} .."
sh "rm -rf build; mkdir build; cd build; export PATH=/opt/rocm/bin:$PATH; CXX=${compiler} CXXFLAGS='-Werror' cmake -DMIOPEN_GPU_SYNC=On -DMIOPEN_TEST_FLAGS='--disable-verification-cache' -DCMAKE_CXX_FLAGS_DEBUG=\"-g -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=undefined -fsanitize-ignorelist=\$(pwd)/../UBSanIgnoreList.txt\" ${flags} .."
sh "cd build; CTEST_PARALLEL_LEVEL=4 MIOPEN_VERIFY_CACHE_PATH=/var/jenkins/.cache/miopen/vcache dumb-init make -j\$(nproc) ${test}"
sh "MIOPEN_LOG_LEVEL=5 ./build/bin/${test} ${testargs}"

Expand Down
2 changes: 1 addition & 1 deletion test/nightlies/JenkinsfileNightlyTensorOps
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def buildJob(compiler, flags, image, test, testargs){
timeout(time: 6, unit: 'HOURS')
{
sh "echo \$HSA_ENABLE_SDMA"
sh "rm -rf build; mkdir build; cd build; export PATH=/opt/rocm/bin:$PATH; CXX=${compiler} CXXFLAGS='-Werror' cmake -DMIOPEN_GPU_SYNC=On -DMIOPEN_TEST_FLAGS='--disable-verification-cache' -DCMAKE_CXX_FLAGS_DEBUG='-g -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=undefined' ${flags} .."
sh "rm -rf build; mkdir build; cd build; export PATH=/opt/rocm/bin:$PATH; CXX=${compiler} CXXFLAGS='-Werror' cmake -DMIOPEN_GPU_SYNC=On -DMIOPEN_TEST_FLAGS='--disable-verification-cache' -DCMAKE_CXX_FLAGS_DEBUG=\"-g -fno-omit-frame-pointer -fsanitize=undefined -fno-sanitize-recover=undefined -fsanitize-ignorelist=\$(pwd)/../UBSanIgnoreList.txt\" ${flags} .."
sh "cd build; CTEST_PARALLEL_LEVEL=4 MIOPEN_VERIFY_CACHE_PATH=/var/jenkins/.cache/miopen/vcache dumb-init make -j\$(nproc) ${test}"
sh "MIOPEN_LOG_LEVEL=5 ./build/bin/${test} ${testargs}"

Expand Down