Skip to content

Commit

Permalink
Fix config for export
Browse files Browse the repository at this point in the history
FUTURE_COPYBARA_INTEGRATE_REVIEW=#354 from jdapena:gcc_fix_2024_03_25 87900cc
PiperOrigin-RevId: 695589061
  • Loading branch information
Ruy Contributors authored and copybara-github committed Nov 13, 2024
1 parent c08ec52 commit 660d5ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ruy/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
load("@bazel_skylib//lib:selects.bzl", "selects")
load(":build_defs.bzl", "ruy_copts", "ruy_copts_avx", "ruy_copts_avx2_fma", "ruy_copts_avx512")
load(":build_defs.oss.bzl", "ruy_linkopts_thread_standard_library")
load(":ruy_test_ext.oss.bzl", "ruy_test_ext_defines", "ruy_test_ext_deps")
load(":ruy_test.bzl", "ruy_benchmark", "ruy_test")
load(":ruy_test_ext.oss.bzl", "ruy_test_ext_defines", "ruy_test_ext_deps")

package(
default_applicable_licenses = ["//third_party/ruy:license"],
Expand Down
3 changes: 0 additions & 3 deletions ruy/build_defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,12 @@ def ruy_copts():
def ruy_copts_avx():
return select({
"//ruy:x86_64_and_not_msvc": ["-mavx"],
"//tools/cc_target_os:windows_msvc": ["/arch:AVX"],
"//conditions:default": [],
})

def ruy_copts_avx2_fma():
return select({
"//ruy:x86_64_and_not_msvc": ["-mavx2", "-mfma"],
"//tools/cc_target_os:windows_msvc": ["/arch:AVX2"],
"//conditions:default": [],
})

Expand All @@ -71,6 +69,5 @@ def ruy_copts_avx512():
# in optimized builds (-c opt).
return select({
"//ruy:x86_64_and_not_msvc": ["$(STACK_FRAME_UNLIMITED)", "-mavx512f", "-mavx512vl", "-mavx512cd", "-mavx512bw", "-mavx512dq"],
"//tools/cc_target_os:windows_msvc": ["/arch:AVX512"],
"//conditions:default": [],
})
2 changes: 2 additions & 0 deletions ruy/profiler/instrumentation.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ limitations under the License.
#define RUY_RUY_PROFILER_INSTRUMENTATION_H_

#ifdef RUY_PROFILER
#include <stdlib.h>
#include <cstdio>
#include <mutex>
#include <string>
#include <vector>
#endif

Expand Down

0 comments on commit 660d5ea

Please sign in to comment.