File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
def rocmnode (name ) {
2
- return ' rocmtest && miopen && (' + name + ' )'
2
+ return ' ( rocmtest || miopen) && (' + name + ' )'
3
3
}
4
4
5
5
def miopenCheckout ()
Original file line number Diff line number Diff line change 23
23
* SOFTWARE.
24
24
*
25
25
*******************************************************************************/
26
+ #include < miopen/env.hpp>
26
27
#include " sum.hpp"
27
28
29
+ MIOPEN_DECLARE_ENV_VAR_STR (MIOPEN_TEST_FLOAT_ARG)
30
+ MIOPEN_DECLARE_ENV_VAR_BOOL(MIOPEN_TEST_ALL)
31
+
28
32
std::string GetFloatArg()
29
33
{
30
- static const auto tmp = miopen::GetEnv ( " MIOPEN_TEST_FLOAT_ARG" );
34
+ const auto & tmp = miopen::GetStringEnv ( ENV ( MIOPEN_TEST_FLOAT_ARG) );
31
35
if (tmp.empty ())
32
36
{
33
37
return " " ;
34
38
}
35
- return tmp. front () ;
39
+ return tmp;
36
40
}
37
41
38
42
struct SumTestFloat : SumTest<float >
@@ -41,7 +45,7 @@ struct SumTestFloat : SumTest<float>
41
45
42
46
TEST_P (SumTestFloat, SumTestFw)
43
47
{
44
- if (miopen::IsEnvvarValueEnabled ( " MIOPEN_TEST_ALL" ) && (GetFloatArg () == " --float" ))
48
+ if (miopen::IsEnabled ( ENV ( MIOPEN_TEST_ALL) ) && (GetFloatArg () == " --float" ))
45
49
{
46
50
RunTest ();
47
51
Verify ();
You can’t perform that action at this time.
0 commit comments