We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8620a8 commit 576e0bbCopy full SHA for 576e0bb
setup.py
@@ -4,6 +4,7 @@
4
import os.path as osp
5
from itertools import product
6
from setuptools import setup, find_packages
7
+import platform
8
9
import torch
10
from torch.__config__ import parallel_info
@@ -46,6 +47,11 @@ def get_extensions():
46
47
else:
48
print('Compiling without OpenMP...')
49
50
+ # Compile for mac arm64
51
+ if (sys.platform == 'darwin' and platform.machine() == 'arm64'):
52
+ extra_compile_args['cxx'] += ['-arch', 'arm64']
53
+ extra_link_args += ['-arch', 'arm64']
54
+
55
if suffix == 'cuda':
56
define_macros += [('WITH_CUDA', None)]
57
nvcc_flags = os.getenv('NVCC_FLAGS', '')
0 commit comments