Skip to content

Commit 4c16d79

Browse files
Fleetbench Teamcopybara-github
authored andcommitted
Use GetFleetbenchRuntimePath to fetch compression_parameter
PiperOrigin-RevId: 561163538 Change-Id: Ib7115ea329af951e05345e1be7fe04cf303d84c2
1 parent 91cc90d commit 4c16d79

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

fleetbench/compression/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ cc_library(
5252
hdrs = ["compression_parameter.h"],
5353
data = glob(["compression_parameters/**"]),
5454
deps = [
55+
"//fleetbench/common",
5556
"@com_google_absl//absl/container:flat_hash_map",
5657
"@com_google_absl//absl/log:check",
5758
"@com_google_absl//absl/strings",
@@ -119,7 +120,6 @@ cc_test(
119120
"//fleetbench:benchmark_main",
120121
"//fleetbench:dynamic_registrar",
121122
"//fleetbench/common",
122-
"@bazel_tools//tools/cpp/runfiles",
123123
"@com_google_absl//absl/log",
124124
"@com_google_absl//absl/log:check",
125125
"@com_google_absl//absl/strings",

fleetbench/compression/compression_parameter.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "absl/log/check.h"
2525
#include "absl/strings/numbers.h"
2626
#include "absl/strings/str_split.h"
27+
#include "fleetbench/common/common.h"
2728

2829
namespace fleetbench {
2930
namespace compression {
@@ -34,9 +35,8 @@ GetCompressionLevelsMap() {
3435
absl::flat_hash_map<std::string, std::vector<int64_t> > >
3536
compression_levels_map;
3637

37-
std::string path =
38-
"fleetbench/compression/compression_parameters/"
39-
"compression_level_external.csv";
38+
std::string path = GetFleetbenchRuntimePath(
39+
"compression/compression_parameters/compression_level_external.csv");
4040

4141
std::string line;
4242
std::fstream file(path, std::ios_base::in);

0 commit comments

Comments
 (0)