File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 73
73
except ImportError :
74
74
bayes_opt_gpytorch_present = False
75
75
76
+ try :
77
+ import pyatf
78
+ pyatf_present = True
79
+ except ImportError :
80
+ pyatf_present = False
81
+
76
82
try :
77
83
from autotuning_methodology .report_experiments import get_strategy_scores
78
84
methodology_present = True
101
107
skip_if_no_bayesopt_gpytorch = pytest .mark .skipif (not bayes_opt_gpytorch_present , reason = "Torch and GPyTorch not installed" )
102
108
skip_if_no_bayesopt_botorch = pytest .mark .skipif (not bayes_opt_botorch_present , reason = "Torch and BOTorch not installed" )
103
109
skip_if_no_hip = pytest .mark .skipif (not hip_present , reason = "No HIP Python found" )
110
+ skip_if_no_pyatf = pytest .mark .skipif (not pyatf_present , reason = "PyATF not installed" )
104
111
skip_if_no_methodology = pytest .mark .skipif (not methodology_present , reason = "Autotuning Methodology not found" )
105
112
106
113
Original file line number Diff line number Diff line change 8
8
from kernel_tuner .util import InvalidConfig
9
9
from kernel_tuner .interface import strategy_map
10
10
11
- from ..context import skip_if_no_bayesopt_botorch , skip_if_no_bayesopt_gpytorch
11
+ from ..context import skip_if_no_bayesopt_botorch , skip_if_no_bayesopt_gpytorch , skip_if_no_pyatf
12
12
13
13
14
14
@pytest .fixture
@@ -47,6 +47,8 @@ def vector_add():
47
47
strategies .append (pytest .param (s , marks = skip_if_no_bayesopt_gpytorch ))
48
48
elif 'botorch' in s .lower ():
49
49
strategies .append (pytest .param (s , marks = skip_if_no_bayesopt_botorch ))
50
+ elif 'pyatf' in s .lower ():
51
+ strategies .append (pytest .param (s , marks = skip_if_no_pyatf ))
50
52
else :
51
53
strategies .append (s )
52
54
@pytest .mark .parametrize ('strategy' , strategies )
You can’t perform that action at this time.
0 commit comments