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 3bf43eb commit d987d29Copy full SHA for d987d29
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
@@ -66,6 +67,11 @@ def get_extensions():
66
67
else:
68
print('Compiling without OpenMP...')
69
70
+ # Compile for mac arm64
71
+ if (sys.platform == 'darwin' and platform.machine() == 'arm64'):
72
+ extra_compile_args['cxx'] += ['-arch', 'arm64']
73
+ extra_link_args += ['-arch', 'arm64']
74
+
75
if suffix == 'cuda':
76
define_macros += [('WITH_CUDA', None)]
77
nvcc_flags = os.getenv('NVCC_FLAGS', '')
0 commit comments