Skip to content

Commit d0349f5

Browse files
committed
fix scripts
1 parent 88dcec6 commit d0349f5

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

modules/core/util/src/util.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <cstdint>
66
#include <iostream>
77
#include <memory>
8+
#include <vector>
89
#endif
910

1011
#include <filesystem>

scripts/run_tests.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ def __source_script(script_path):
5858
print(f"Failed to source script: {script_path}")
5959
return {}
6060

61+
def setup_env(self):
62+
self.work_dir = Path(self.__get_project_path()) / "install/bin"
63+
6164
@staticmethod
6265
def __run_exec(command):
6366
result = subprocess.run(command, shell=True, env=os.environ)
@@ -130,6 +133,7 @@ def run_performance_list(self):
130133
args_dict = init_cmd_args()
131134

132135
ppc_runner = PPCRunner()
136+
ppc_runner.setup_env()
133137

134138
if args_dict["running_type"] in ["threads", "processes"]:
135139
ppc_runner.run_core()

tasks/all/example/func_tests/func_all.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
#include <cstddef>
44
#include <cstdint>
5+
#include <iostream>
56
#include <memory>
67
#include <vector>
78

89
#include "all/example/include/ops_all.hpp"
910
#include "core/task/include/task.hpp"
1011
#include "core/util/include/util.hpp"
11-
12-
#include <iostream>
1312
#define STB_IMAGE_IMPLEMENTATION
1413
#include <stb/stb_image.h>
14+
1515
#include <string>
1616

1717
TEST(nesterov_a_test_task_all, test_matmul_50) {

0 commit comments

Comments
 (0)