-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
Windows cmake failed compile for rocm #6972
Comments
I have the same error building on Windows with ROCm. |
|
I compiled that file with the -E flag to get the preprocessed output. This is where the error occurs:
And tried compiling the preprocessed output:
|
Does it work with |
Nope, same error. |
I was able to work around this for now by adding |
I suspect that the issue is that the rocm compiler pretends to be MSVC and defines https://rocm.docs.amd.com/en/docs-5.5.1/reference/rocmcc/rocmcc.html So maybe this can be fixed by adding a |
Adding that there and to the corresponding location for LOG_TEE_IMPL did indeed fix the issue. |
Cool, feel free to open a PR. |
ROCm clang defines _MSC_VER which results in the wrong implementation of LOG_IMPL and LOG_TEE_IMPL being compiled. This fixes ggml-org#6972
ROCm clang defines _MSC_VER which results in the wrong implementation of LOG_IMPL and LOG_TEE_IMPL being compiled. This fixes #6972
ROCm clang defines _MSC_VER which results in the wrong implementation of LOG_IMPL and LOG_TEE_IMPL being compiled. This fixes ggml-org#6972
ROCm clang defines _MSC_VER which results in the wrong implementation of LOG_IMPL and LOG_TEE_IMPL being compiled. This fixes ggml-org#6972
#6797 (comment)
The text was updated successfully, but these errors were encountered: