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

error: use of undeclared identifier 'hsa_amd_signal_create_on_agent' #1793

Open
thhongee opened this issue Sep 25, 2024 · 3 comments
Open

error: use of undeclared identifier 'hsa_amd_signal_create_on_agent' #1793

thhongee opened this issue Sep 25, 2024 · 3 comments
Assignees

Comments

@thhongee
Copy link

thhongee commented Sep 25, 2024

I tried to install all the toolchain, but I always encounter this error(error: use of undeclared identifier 'hsa_amd_signal_create_on_agent) when executing the following command.
Could you please let me know if I missed installing something?

Then, set ${ROCM_ROOT} to the ROCm install. Then, run the following command to build the mlir-aie toolchain targetting the VCK5000 pointing to the externally installed aie-rt and experimental ROCm runtime.

./utils/build-mlir-aie-pcie.sh llvm/build/ build install /opt/xaiengine ${ROCM_ROOT}/lib/cmake/hsa-runtime64/ ${ROCM_ROOT}/lib/cmake/hsakmt/

Thanks

Stanley

@eddierichter-amd
Copy link
Collaborator

Hi Stanley,

Thanks for reaching out. I believe you are getting that error because ${ROCM_ROOT} needs to point to our experimental ROCm runtime that can target the AIEs on the VCK5000 (https://github.com/ROCm/ROCR-Runtime/tree/experimental/rocm-5.6.x-air).

Have you tried building just with the command ./utils/build-mlir-aie-pcie.sh <llvm dir>/<build dir>? That script should build our experimental ROCm runtime and point cmake to it. Let me know if that works.

Thanks,

Eddie Richter

@thhongee
Copy link
Author

Thanks for your reply,

I got the same error(error: use of undeclared identifier 'hsa_amd_signal_create_on_agent) when I was entering that command:
./utils/build-mlir-aie-pcie.sh /mnt/cehong/build_vitis_env/mlir-aie/llvm

Thanks,

Stanley

@eddierichter-amd eddierichter-amd self-assigned this Sep 30, 2024
@eddierichter-amd
Copy link
Collaborator

Hm that is surprising. What commit are you on? Can you see if the following lines are being executed: https://github.com/Xilinx/mlir-aie/blob/main/utils/build-mlir-aie-pcie.sh#L66-L73 in the build-mlir-aie-pcie.sh script? This should be building our experimental version of ROCm that has that API defined.

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

2 participants