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

rocMLIR installation is failed #1444

Open
qianqing13579 opened this issue Mar 5, 2024 · 7 comments
Open

rocMLIR installation is failed #1444

qianqing13579 opened this issue Mar 5, 2024 · 7 comments

Comments

@qianqing13579
Copy link

I use following instrutions to install rocMLIR

mkdir build
cd build
cmake -G Ninja .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_COMPILER=/opt/rocm/llvm/bin/clang -DCMAKE_CXX_COMPILER=/opt/rocm/llvm/bin/clang++
ninja check-rocmlir

and an error occurred:

rocmlir/external/llvm-project/mlir/lib/Dialect/GPU/AmdDeviceLibsIncGen.py: Permission denied

I do not know why?

@krzysz00
Copy link
Collaborator

krzysz00 commented Mar 6, 2024

@qianqing13579 Check if the script mentioned in that error message is executable? You might need to chmod +x it, which is weird, since I'm pretty sure it got committed as such - or gets called via python3 anyway.

@qianqing13579
Copy link
Author

@krzysz00 ,I use chmod +x, but an error occurred as follows:

[1/3559] Generating device libraries include package
FAILED: external/llvm-project/llvm/tools/mlir/lib/Dialect/GPU/Transforms/AmdDeviceLibs.cpp.inc /root/rocmlir/build/external/llvm-project/llvm/tools/mlir/lib/Dialect/GPU/Transforms/AmdDeviceLibs.cpp.inc
cd /root/rocmlir/build/external/llvm-project/llvm/tools/mlir/lib/Dialect/GPU && /root/rocmlir/external/llvm-project/mlir/lib/Dialect/GPU/AmdDeviceLibsIncGen.py /root/rocmlir/build/external/llvm-project/llvm/tools/mlir/lib/Dialect/GPU/Transforms/AmdDeviceLibs.cpp.inc /opt/rocm ocml ockl hip asanrtl
/usr/bin/env: ‘python3\r’: No such file or directory

@krzysz00
Copy link
Collaborator

krzysz00 commented Mar 7, 2024

... huh, that's weird, I'll look into why there's a windows newline in there

@krzysz00
Copy link
Collaborator

krzysz00 commented Mar 7, 2024

... can you take a look at your git configuration to see if it's adding DOS newlines?

@rakicaleksandar1999
Copy link

rakicaleksandar1999 commented Mar 19, 2024

@qianqing13579 Did you try setting the following cmake options?
-DCMAKE_PREFIX_PATH
-DCMAKE_INSTALL_PREFIX
-DROCM_PATH
-DROCM_TEST_CHIPSET
-DBUILD_FAT_LIBROCKCOMPILER

@krzysz00
Copy link
Collaborator

I don't think those would necessarily be related, I'm suspecting Git auto-crlf issues given the \r in the Python executable name

@qianqing13579
Copy link
Author

@krzysz00 , the problem is solved,thanks

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

3 participants