diff --git a/patch/npu.patch b/patch/npu.patch index 35e2db577b844c60fd0d49643056619854cd483c..c54cd60ab31caaa3aad713e1020a0332d7ec46b1 100644 --- a/patch/npu.patch +++ b/patch/npu.patch @@ -2639,7 +2639,7 @@ diff -Nur '--exclude=.git' apex/setup.py apex-develop/setup.py +if (TORCH_MAJOR == 2 and TORCH_MINOR >= 1) or TORCH_MAJOR > 2 : + secure_compile_args.append('-std=c++17') + -+secure_link_args = ['-Wl,-z,now', '-Wl,-z,relro', '-Wl,-z,noexecstack', '-s', '-Wl,--disable-new-dtags,--rpath'] ++secure_link_args = ['-Wl,-z,now', '-Wl,-z,relro', '-Wl,-z,noexecstack', '-s'] + +def get_package_dir(): + if '--user' in sys.argv: