# Copyright 2025 The OpenXLA Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ============================================================================== diff --git a/src/BUILD.bazel b/src/BUILD.bazel index 3c0b83369a..6526217de1 100644 --- a/src/BUILD.bazel +++ b/src/BUILD.bazel @@ -997,7 +997,6 @@ filegroup( "runtime/NEON/functions/NETranspose.cpp", "runtime/NEON/functions/NEUnstack.cpp", "runtime/NEON/functions/NEWinogradConvolutionLayer.cpp", - "runtime/OMP/OMPScheduler.cpp", "runtime/OffsetLifetimeManager.cpp", "runtime/OffsetMemoryPool.cpp", "runtime/OperatorTensor.cpp", @@ -1110,6 +1109,10 @@ filegroup( "cpu/kernels/select/generic/neon/fp16.cpp", "cpu/kernels/softmax/generic/neon/fp16.cpp", "cpu/kernels/sub/neon/fp16.cpp"] + + select({ + "//:openmp_flag": ["runtime/OMP/OMPScheduler.cpp"], + "//conditions:default": [], + }) + glob(["**/*.h", "**/*.hpp", "**/*.inl"]),