-
Notifications
You must be signed in to change notification settings - Fork 242
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
[Issue]: multiple undefined behavior discovered with -fsanitize=undefined in DEV builds #2602
Comments
This comment was marked as outdated.
This comment was marked as outdated.
I am working on this |
# ll /opt/rocm/llvm/bin/amdclang++
lrwxrwxrwx 1 root root 7 Sep 9 00:01 /opt/rocm/llvm/bin/amdclang++ -> amdllvm*
# ll /opt/rocm/llvm/bin/amdllvm
-rwxr-xr-x 1 root root 548112 Sep 9 00:01 /opt/rocm/llvm/bin/amdllvm*
# ll /opt/rocm/llvm/bin/clang++
lrwxrwxrwx 1 root root 5 Sep 9 00:00 /opt/rocm/llvm/bin/clang++ -> clang*
# ll /opt/rocm/llvm/bin/clang
lrwxrwxrwx 1 root root 8 Sep 9 00:00 /opt/rocm/llvm/bin/clang -> clang-17*
# ll /opt/rocm/llvm/bin/clang-17
-rwxr-xr-x 1 root root 164455928 Sep 9 00:00 /opt/rocm/llvm/bin/clang-17* What is the difference between |
@junliume @JehandadKhan Please note that Jenkinsfile uses |
@junliume WRT the 2nd and the 3rd bullets, these are related to the /// In bn_aux.cpp:
miopenDataType_t dt; // The value passed to miopenGetTensorDescriptor is not initialized.
miopenGetTensorDescriptor(derivedTensor, &dt, lens.data(), nullptr);
/// In tensor_api.cpp:
extern "C" miopenStatus_t miopenGetTensorDescriptor(miopenTensorDescriptor_t tensorDesc,
miopenDataType_t* dataType,
int* dimsA,
int* stridesA)
{
MIOPEN_LOG_FUNCTION(tensorDesc, dataType, dimsA, stridesA);
... Then (1) We should avoid logging the output values in the (2) Alternatively, we can move
(3) Combine both. Remove outputs from I am going to leverage approach (1) for now. |
The request to use |
@junliume not reproducible with rocm/miopen:ci_386a9d that contains 5.7.1. |
@junliume Please check if https://github.com/atamazov/MIOpen/tree/fix-issue-2602 resolves the issues. The same as a patch: fix-issue-2602.diff.txt |
@JehandadKhan #2602 (comment) updated with approach (3) that might be useful in the future. |
Thanks! I will be checking that branch out to test later today and provide results here. |
@junliume I am glad to see that the fix works as expected ;) |
Problem Description
[Suspected Issue]:
Uninitialized values are been used.
[Steps to Reproduce]
[List of Observed Issues]
smoke_miopendriver_gemm
undefined bool here?
MIOpen/src/include/miopen/gemm_v2.hpp
Line 75 in 26d801a
test_bn_aux
test_tensor_test
test_main
and many ofTensorApiSetTensor/TestSetTensor
test_cba_inference
test_na_inference
test_na_train
Operating System
Ubuntu 22.04.3 LTS
CPU
AMD Ryzen Threadripper 3960X
GPU
AMD Radeon RX 7900 XT
Other
No response
ROCm Version
ROCm 5.7.1
ROCm Component
MIOpen
Steps to Reproduce
No response
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: