From c302872499fe6426646e1cfbcaa18f9ab1b3af4e Mon Sep 17 00:00:00 2001 From: Amit Aflalo Date: Thu, 3 Feb 2022 11:47:50 +0200 Subject: [PATCH 1/5] mac arm64(m1) --- setup.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.py b/setup.py index 00ea774c..1e21c402 100644 --- a/setup.py +++ b/setup.py @@ -4,6 +4,7 @@ import os.path as osp from itertools import product from setuptools import setup, find_packages +import platform import torch from torch.__config__ import parallel_info @@ -65,6 +66,10 @@ def get_extensions(): extra_compile_args['cxx'] += ['-fopenmp'] else: print('Compiling without OpenMP...') + + if (sys.platform == 'darwin' and platform.machine() == 'arm64'): # Compile for mac arm64 + extra_compile_args['cxx'] += ['-arch', 'arm64'] + extra_link_args += ['-arch', 'arm64'] if suffix == 'cuda': define_macros += [('WITH_CUDA', None)] From 5f7ce12d80d525cbaeef6c9531c455a7d29ac239 Mon Sep 17 00:00:00 2001 From: Amit Aflalo Date: Thu, 3 Feb 2022 12:03:28 +0200 Subject: [PATCH 2/5] linting --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 1e21c402..184b80c8 100644 --- a/setup.py +++ b/setup.py @@ -66,8 +66,9 @@ def get_extensions(): extra_compile_args['cxx'] += ['-fopenmp'] else: print('Compiling without OpenMP...') - - if (sys.platform == 'darwin' and platform.machine() == 'arm64'): # Compile for mac arm64 + + if (sys.platform == 'darwin' and + platform.machine() == 'arm64'): # Compile for mac arm64 extra_compile_args['cxx'] += ['-arch', 'arm64'] extra_link_args += ['-arch', 'arm64'] From f6a99914bc97245818f3edc4fbd48dfe204ed0c6 Mon Sep 17 00:00:00 2001 From: Amit Aflalo Date: Thu, 3 Feb 2022 12:07:43 +0200 Subject: [PATCH 3/5] # Compile for mac arm64 --- .DS_Store | Bin 0 -> 6148 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..2dc48d5f62abdccb12a34856546e11b7e4e8c230 GIT binary patch literal 6148 zcmeHK%T59@6g|Z;f*8ZnjmdlgiGMI4n2@Loaj(2Y!ZQMi%h~%6{(|46hGzl5eRJjeW*5=IG%C)6Q&%tqtmc zI`H2dkaxF&K1NtzfWrH`9Q0?)K6_^%i+29`LlIradOtC s%txk#@N$P%!onZNwjxLI8Pf*)QmGI#kGVs(F!V#f+MtCx@TU%Z18XXsSO5S3 literal 0 HcmV?d00001 From 9226cd1d1f86daa2a271f032a05dc3dd4a8d11da Mon Sep 17 00:00:00 2001 From: Amit Aflalo Date: Thu, 3 Feb 2022 12:07:59 +0200 Subject: [PATCH 4/5] # Compile for mac arm64 --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 184b80c8..4b70666d 100644 --- a/setup.py +++ b/setup.py @@ -67,8 +67,8 @@ def get_extensions(): else: print('Compiling without OpenMP...') - if (sys.platform == 'darwin' and - platform.machine() == 'arm64'): # Compile for mac arm64 + # Compile for mac arm64 + if (sys.platform == 'darwin' and platform.machine() == 'arm64'): extra_compile_args['cxx'] += ['-arch', 'arm64'] extra_link_args += ['-arch', 'arm64'] From 4b89c7477afd5345e04dadf2ecbb639c387bb531 Mon Sep 17 00:00:00 2001 From: Amit Aflalo Date: Thu, 3 Feb 2022 12:16:00 +0200 Subject: [PATCH 5/5] removing .DS_Store --- .DS_Store | Bin 6148 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 2dc48d5f62abdccb12a34856546e11b7e4e8c230..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmeHK%T59@6g|Z;f*8ZnjmdlgiGMI4n2@Loaj(2Y!ZQMi%h~%6{(|46hGzl5eRJjeW*5=IG%C)6Q&%tqtmc zI`H2dkaxF&K1NtzfWrH`9Q0?)K6_^%i+29`LlIradOtC s%txk#@N$P%!onZNwjxLI8Pf*)QmGI#kGVs(F!V#f+MtCx@TU%Z18XXsSO5S3