2023. 03. 08. 12:43 keltezéssel, Ross Burton írta:
On 7 Mar 2023, at 15:13, Zoltan Boszormenyi via lists.openembedded.org
<zboszor=gmail....@lists.openembedded.org> wrote:
Hi,
Recently, I had to create recipes for a few python modules,
among which a few used cmake to build their C or C++ pieces.
I saw from their build log that they complained about
the missing (optional) "ninja" python module, and falling back
to the traditional compile-one-file-at-a-time method.
Do we want to speed up building python modules that
exploit this or using ninja is too rare to bother?
Ninja is used by cmake.bbclass and meson.bbclass, so absolutely use ninja if
the build supports it.
Cool.
However, I am talking about this below when trying to
build ByteTrack from https://github.com/ifzhang/ByteTrack
which needs pytorch to build. Pytorch also has some build
extensions itself:
python3-bytetrack/0.0.1-r0/temp/log.do_compile:/data2/yocto-4.0/tmp-sicom-glibc/work/corei7-64-oe-linux/python3-bytetrack/0.0.1-r0/recipe-sysroot-native/usr/lib/python3.10/site-packages/torch/utils/cpp_extension.py:415:
UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find
ninja.. Falling back to using the slow distutils backend.
The code in pytorch does "import ninja" conditionally,
so it expects it as a python module. Also, this specific
package and anything that uses pytorch for its build
(like torchvision) complains about the same.
My question was out of curiosity, not as a real need.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#178170):
https://lists.openembedded.org/g/openembedded-core/message/178170
Mute This Topic: https://lists.openembedded.org/mt/97450739/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-