Package Details: python-apex-git 22.03.r180.g8b7a1ff1-1

Git Clone URL: (read-only, click to copy)
Package Base: python-apex-git
Description: A PyTorch Extension: Tools for easy mixed precision and distributed training in Pytorch
Upstream URL:
Keywords: pytorch
Licenses: BSD
Conflicts: python-apex
Provides: python-apex
Submitter: leomao
Maintainer: petronny
Last Packager: petronny
Votes: 0
Popularity: 0.000000
First Submitted: 2018-12-14 06:07 (UTC)
Last Updated: 2023-05-24 11:14 (UTC)

Required by (4)

Sources (1)

Pinned Comments

petronny commented on 2022-08-31 06:43 (UTC)

Prebuilt binaries of this package can be found in the arch4edu repository.

Latest Comments

1 2 Next › Last »

chengscott commented on 2023-10-21 04:22 (UTC) (edited on 2023-10-21 04:23 (UTC) by chengscott)

gcc11 dependency can be dropped as suggested by the building message.

Also, the source in PKGBUILD needs to set the tag; otherwise, the main branch will likely fail the build.

Mine PKGBUILD file, in case anyone needs one,

chengscott commented on 2022-08-31 13:50 (UTC)

CC=/opt/cuda/bin/gcc CXX=/opt/cuda/bin/g++ is also needed for python install

otherwise, the build shows lto build failed (quite confusing error message) This is due to mismatched g++ version: /usr/bin/g++: g++ (GCC) 12.2.0 /opt/cuda/bin/g++: g++ (GCC) 11.3.0

petronny commented on 2022-08-31 06:43 (UTC)

Prebuilt binaries of this package can be found in the arch4edu repository.

leomao commented on 2019-11-04 08:17 (UTC) (edited on 2019-11-04 08:17 (UTC) by leomao)

@petronny Yes, it is clear that you need qt5-base because the error message showed that it needed But this error was triggered by import torch.

I have verified that in a clean chroot environment, import torch is not working after just installing python-pytorch-cuda. So it seems that the dependencies of some packages in the official repo are not properly set...

petronny commented on 2019-11-04 07:26 (UTC)

I think the reason is qt5-base is not added to makedepends.

I can build the package with qt5-base in makedepends.

leomao commented on 2019-10-27 08:02 (UTC) (edited on 2019-10-27 08:03 (UTC) by leomao)

@petronny I think there is something wrong with your python-pytorch-cuda because the error message indicated that import torch failed...
Could you try python -c 'import torch; print(torch.__version__)' to verify that you can import it without the error?

I will add python-pip into the makedepends later.

petronny commented on 2019-10-24 05:00 (UTC) (edited on 2019-10-24 05:01 (UTC) by petronny)


==> Starting build()...
==> Building Python 3
Traceback (most recent call last):
  File "", line 1, in <module>
    import torch
  File "/usr/lib/python3.7/site-packages/torch/", line 81, in <module>
    from torch._C import *
ImportError: cannot open shared object file: No such file or directory
==> ERROR: A failure occurred in build().


There might be something missing in makedepends.

petronny commented on 2019-08-16 03:59 (UTC)

There is one more thing to fix to pass the build.

==> Building Python 3
Traceback (most recent call last):
  File "", line 5, in <module>
    from pip._internal import main as pipmain
ModuleNotFoundError: No module named 'pip'
==> ERROR: A failure occurred in build().

Please add python-pip to makedepends.

leomao commented on 2019-08-13 07:42 (UTC)

@petronny you're right. Fixed.

petronny commented on 2019-08-13 05:53 (UTC)

No CUDA runtime is found, using CUDA_HOME='/opt/cuda'
Traceback (most recent call last):
  File "", line 64, in <module>
  File "", line 43, in check_cuda_torch_binary_vs_bare_metal
    torch_binary_major = torch.version.cuda.split(".")[0]
AttributeError: 'NoneType' object has no attribute 'split'

Please change python-pytorch to python-pytorch-cuda.