File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
examples/models/llama2/custom_ops Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -558,11 +558,6 @@ if(EXECUTORCH_BUILD_PYBIND)
558
558
list (APPEND _dep_libs xnnpack_backend XNNPACK )
559
559
endif ()
560
560
561
- if (EXECUTORCH_BUILD_CUSTOM )
562
- target_link_options_shared_lib (custom_ops )
563
- list (APPEND _dep_libs custom_ops )
564
- endif ()
565
-
566
561
if (EXECUTORCH_BUILD_QUANTIZED )
567
562
target_link_options_shared_lib (quantized_ops_lib )
568
563
list (APPEND _dep_libs quantized_kernels quantized_ops_lib )
@@ -572,6 +567,13 @@ if(EXECUTORCH_BUILD_PYBIND)
572
567
if (EXECUTORCH_BUILD_CUSTOM_OPS_AOT AND NOT APPLE )
573
568
list (APPEND _dep_libs custom_ops_aot_lib )
574
569
endif ()
570
+ # TODO(laryliu): Fix linux duplicate registation problem. In GH CI worker
571
+ # libcustom_ops.a doesn't dedup with the one indirectly linked from
572
+ # libcustom_ops_aot_lib.a
573
+ if (EXECUTORCH_BUILD_CUSTOM AND APPLE )
574
+ target_link_options_shared_lib (custom_ops )
575
+ list (APPEND _dep_libs custom_ops )
576
+ endif ()
575
577
# compile options for pybind
576
578
577
579
set (_pybind_compile_options -Wno-deprecated-declarations -fPIC -frtti
Original file line number Diff line number Diff line change 9
9
import torch
10
10
import torch .nn .functional as F
11
11
12
+ from .sdpa_with_kv_cache import custom_ops_lib # noqa
12
13
13
14
class SDPATest (unittest .TestCase ):
14
15
You can’t perform that action at this time.
0 commit comments