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

[Issue]: in gemm_basic example, throw std::runtime_error() hangs with non-supported arg shape #1928

Open
ZJLi2013 opened this issue Mar 3, 2025 · 0 comments

Comments

@ZJLi2013
Copy link

ZJLi2013 commented Mar 3, 2025

Problem Description

in example/ck_tile/03_gemm/gemm_basic.cpp

with not supported args, e..g -m=128, -n=128, -k=32, it will hangs at :

    if(!Kernel::IsSupportedArgument(kargs))
    {
        throw std::runtime_error("Wrong! Arguments not supported! Skipping gemm!\n");
    }

basically it can print out "Wrong ! Argument not supported", but hangs then, rather than exit as expected, make the user need to restart the container ..

the following can fix the hang issue for now

    if(!Kernel::IsSupportedArgument(kargs))
    {
        // throw std::runtime_error("Wrong! Arguments not supported! Skipping gemm!\n");
        std::cerr << "Wrong! Arguments not supported! Skipping gemm!" << std::endl;
        std::exit(EXIT_FAILURE);
    }

Operating System

Ubuntu 22.04

CPU

AMD

GPU

AMD Instinct MI300

Other

No response

ROCm Version

ROCm 6.0.0

ROCm Component

No response

Steps to Reproduce

No response

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

@ZJLi2013 ZJLi2013 changed the title [Issue]: in gemm_basic example, the throw std::runtime_error() hangs with non-supported arg shape [Issue]: in gemm_basic example, throw std::runtime_error() hangs with non-supported arg shape Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant