You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.
With the recent introduction of Gcc 12 in Debian unstable, I noticed that rocm-hipamd 5.0.0 failed to build from source when hipcc was trying to refer to Gcc 12 headers, see the log below:
-- Generating /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/directed_tests.deviceLib.hipVectorTypesDevice.dir/hip/tests/src/deviceLib/./directed_tests.deviceLib.hipVectorTypesDevice_generated_hipVectorTypesDevice.cpp.o
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/bin/hipcc -c /<<PKGBUILDDIR>>/hip/tests/src/deviceLib/hipVectorTypesDevice.cpp -o /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles/directed_tests.deviceLib.hipVectorTypesDevice.dir/hip/tests/src/deviceLib/./directed_tests.deviceLib.hipVectorTypesDevice_generated_hipVectorTypesDevice.cpp.o --offload-arch=gfx803 -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/hip/tests/src -I/<<PKGBUILDDIR>>/hip/tests/unit -I/<<PKGBUILDDIR>>/hip/tests/performance -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/hip/tests/src
In file included from /<<PKGBUILDDIR>>/hip/tests/src/deviceLib/hipVectorTypesDevice.cpp:34:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/memory:77:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/shared_ptr.h:53:
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/shared_ptr_base.h:196:22: error: use of undeclared identifier 'noinline'; did you mean 'inline'?
__attribute__((__noinline__))
^
/<<PKGBUILDDIR>>/include/hip/amd_detail/host_defines.h:50:37: note: expanded from macro '__noinline__'
#define __noinline__ __attribute__((noinline))
^
In file included from /<<PKGBUILDDIR>>/hip/tests/src/deviceLib/hipVectorTypesDevice.cpp:34:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/memory:77:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/shared_ptr.h:53:
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/shared_ptr_base.h:196:22: error: type name does not allow function specifier to be specified
/<<PKGBUILDDIR>>/include/hip/amd_detail/host_defines.h:50:37: note: expanded from macro '__noinline__'
#define __noinline__ __attribute__((noinline))
^
In file included from /<<PKGBUILDDIR>>/hip/tests/src/deviceLib/hipVectorTypesDevice.cpp:34:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/memory:77:
In file included from /usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/shared_ptr.h:53:
/usr/bin/../lib/gcc/x86_64-linux-gnu/12/../../../../include/c++/12/bits/shared_ptr_base.h:196:22: error: expected expression
/<<PKGBUILDDIR>>/include/hip/amd_detail/host_defines.h:50:46: note: expanded from macro '__noinline__'
#define __noinline__ __attribute__((noinline))
^
3 errors generated when compiling for gfx803.
I worked around the build failure by shunting the __attribute__((noinline)) with the below patch, but it feel rather hacky and possibly wrong (but it builds okay):
Having a quick look at hipamd 5.2 source code, it may be possible the issue might be still present, but I can't tell for sure while we haven't completed the upgrade to 5.2 in unstable.
Kind Regards,
Étienne.
The text was updated successfully, but these errors were encountered:
Thanks for the status and the pointers to the implementations of the fix! Sorry I haven't searched cross repositories. If this is addressed, then I suppose the present issue can be closed.
I really think issue reporting, and release notes are a big mess, you need to search multiple repositories and even websites that should all be there for each repo.
Greetings,
With the recent introduction of Gcc 12 in Debian unstable, I noticed that rocm-hipamd 5.0.0 failed to build from source when hipcc was trying to refer to Gcc 12 headers, see the log below:
I worked around the build failure by shunting the
__attribute__((noinline))
with the below patch, but it feel rather hacky and possibly wrong (but it builds okay):Having a quick look at hipamd 5.2 source code, it may be possible the issue might be still present, but I can't tell for sure while we haven't completed the upgrade to 5.2 in unstable.
Kind Regards,
Étienne.
The text was updated successfully, but these errors were encountered: