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]: The OpenCL kernel compiled with clang-ocl in ROCm 6.1 produces incorrect results. #80

Closed
hyunjik-song opened this issue May 8, 2024 · 2 comments

Comments

@hyunjik-song
Copy link

hyunjik-song commented May 8, 2024

Problem Description

Incorrect results occur when loading and executing OpenCL kernels compiled with clang-ocl with hip api on ROCm 6.1 in Ubuntu 22.04.

Operating System

Ubuntu 22.04.3 LTS (Jammy Jellyfish)

CPU

AMD EPYC 7413

GPU

AMD Instinct MI250X

ROCm Version

ROCm 6.1.0

ROCm Component

clang-ocl

Steps to Reproduce

Initially, compile the OpenCL kernel with clang-ocl.
Then, utilize HIP APIs like hipModuleLoad(), hipModuleGetFunction(), and hipExtModuleLaunchKernel() to load and execute the compiled binary within the host code.
Ultimately, incorrect results should be encountered.

Attached below is the source code and Makefile used for reproduction.
The first value is found to be incorrect upon running the attached source code.

src.tar.gz

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

No response

Additional Information

No response

@ppanchad-amd
Copy link

@hyunjik-song Internal ticket has been created to investigate this issue. Thanks!

@schung-amd
Copy link

clang-ocl has been removed from ROCm, so this will not be addressed, but thanks for pointing this out!

@schung-amd schung-amd closed this as not planned Won't fix, can't repro, duplicate, stale Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants