diff options
author | Meng Mengmeng <mengmeng.meng@intel.com> | 2015-10-20 10:15:08 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2015-10-21 15:32:34 +0800 |
commit | 5796f4201597574d1f3ebf1d6a526d4e3787bc43 (patch) | |
tree | 38aba08120005194c95c1bcd07cb8c2f457234c5 /utests/utest.hpp | |
parent | 0c2296661b345bef2dc58da3ca1e6f079bd39992 (diff) | |
download | beignet-5796f4201597574d1f3ebf1d6a526d4e3787bc43.tar.gz |
add utests option: -j which specifies the 'number' of jobs (multi-thread)
It's out-of-order execution in multi-tread which value range should be [1 - CPU cores].
Signed-off-by: Meng Mengmeng <mengmeng.meng@intel.com>
Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
Diffstat (limited to 'utests/utest.hpp')
-rw-r--r-- | utests/utest.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/utests/utest.hpp b/utests/utest.hpp index 7ae8b876..cda75459 100644 --- a/utests/utest.hpp +++ b/utests/utest.hpp @@ -54,6 +54,8 @@ struct UTest Function fn; /*! Name of the test */ const char *name; + /*! numbers of the jobs */ + const char *number; /*! whether it is a bench mark. */ bool isBenchMark; /*! Indicate whether current test cases has issue to be fixes */ @@ -64,6 +66,8 @@ struct UTest static std::vector<UTest> *utestList; /*! Run the test with the given name */ static void run(const char *name); + /*! Run the test with the given name */ + static void runMultiThread(const char *number); /*! Run all the tests without known issue*/ static void runAllNoIssue(void); /*! Run all the benchmark. */ |