File tree Expand file tree Collapse file tree 2 files changed +0
-32
lines changed Expand file tree Collapse file tree 2 files changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -55,12 +55,6 @@ def inline_threshold(self, value: int):
5555 )
5656 self ._inline_threshold = 0
5757 else :
58- if value == 3 :
59- warnings .warn (
60- "Due to an existing compiler bug, setting INLINE_THRESHOLD "
61- f"to { value } can lead to incorrect code generation on "
62- "certain devices."
63- )
6458 self ._inline_threshold = value
6559
6660 def _optimize_final_module (self ):
@@ -69,12 +63,6 @@ def _optimize_final_module(self):
6963
7064 # Make optimization level depending on config.DPEX_OPT variable
7165 pmb .opt_level = config .DPEX_OPT
72- if config .DPEX_OPT > 2 :
73- warnings .warn (
74- "Setting NUMBA_DPEX_OPT greater than 2 known to cause issues "
75- + "related to very aggressive optimizations that leads to "
76- + "broken code."
77- )
7866
7967 pmb .disable_unit_at_a_time = False
8068
Original file line number Diff line number Diff line change @@ -16,26 +16,6 @@ def foo(a):
1616 a [dpex .get_global_id (0 )] = 0
1717
1818
19- def test_opt_warning ():
20- bkp = config .DPEX_OPT
21- config .DPEX_OPT = 3
22-
23- with pytest .warns (UserWarning ):
24- dpex .call_kernel (foo , dpex .Range (10 ), dpnp .arange (10 ))
25-
26- config .DPEX_OPT = bkp
27-
28-
29- def test_inline_threshold_eq_3_warning ():
30- bkp = config .INLINE_THRESHOLD
31- config .INLINE_THRESHOLD = 3
32-
33- with pytest .warns (UserWarning ):
34- dpex .call_kernel (foo , dpex .Range (10 ), dpnp .arange (10 ))
35-
36- config .INLINE_THRESHOLD = bkp
37-
38-
3919def test_inline_threshold_negative_val_warning_ ():
4020 bkp = config .INLINE_THRESHOLD
4121 config .INLINE_THRESHOLD = - 1
You can’t perform that action at this time.
0 commit comments