Skip to content

Commit b9e2e53

Browse files
authored
[SYCLomatic] Fix SYCLomatic CI failure due to intel/llvm/pull/6982 changed compiler behavior (#146)
* fix CI failed, due to compiler change after 20221202 Signed-off-by: Ni, Wenhui <[email protected]> * disable math_exec math_habs on gen12 Signed-off-by: Ni, Wenhui <[email protected]>
1 parent c4cd8ac commit b9e2e53

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

features/config/TEMPLATE_math_exec.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
<rules>
99
<platformRule OSFamily="Linux" kit="CUDA11.2" kitRange="OLDER" runOnThisPlatform="false"/>
1010
<platformRule OSFamily="Windows" kit="CUDA11.2" kitRange="OLDER" runOnThisPlatform="false"/>
11+
<optlevelRule GPUFeature="NOT double" excludeOptlevelNameString="gpu" />
1112
</rules>
1213
</test>

features/config/TEMPLATE_math_habs.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
<optlevelRule excludeOptlevelNameString="cpu" />
1010
<platformRule OSFamily="Linux" kit="CUDA10.2" kitRange="OLDER" runOnThisPlatform="false"/>
1111
<platformRule OSFamily="Windows" kit="CUDA10.2" kitRange="OLDER" runOnThisPlatform="false"/>
12+
<optlevelRule GPUFeature="NOT double" excludeOptlevelNameString="gpu" />
1213
</rules>
1314
</test>

features/features.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@
5353
<test testName="math-direct" configFile="config/TEMPLATE_math.xml" />
5454
<test testName="math-drcp" configFile="config/TEMPLATE_math_drcp.xml" splitGroup="double" />
5555
<test testName="math-emu" configFile="config/TEMPLATE_math.xml" />
56-
<test testName="math-exec" configFile="config/TEMPLATE_math_exec.xml" />
56+
<test testName="math-exec" configFile="config/TEMPLATE_math_exec.xml" splitGroup="double" />
5757
<test testName="math-funnelshift" configFile="config/TEMPLATE_math_funnelshift.xml" />
58-
<test testName="math-habs" configFile="config/TEMPLATE_math_habs.xml" />
58+
<test testName="math-habs" configFile="config/TEMPLATE_math_habs.xml" splitGroup="double" />
5959
<test testName="math-helper" configFile="config/TEMPLATE_math.xml" />
6060
<test testName="math-saturate" configFile="config/TEMPLATE_math.xml" />
6161
<test testName="cusparse" configFile="config/TEMPLATE_cusparse.xml" />

features/test_feature.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def run_test():
125125
if test_config.current_test not in exec_tests:
126126
return True
127127
os.environ['SYCL_DEVICE_FILTER'] = test_config.device_filter
128+
os.environ['CL_CONFIG_CPU_EXPERIMENTAL_FP16']="1"
128129
if test_config.current_test == 'ccl':
129130
return call_subprocess('mpirun -n 2 ' + os.path.join(os.path.curdir, test_config.current_test + '.run '))
130131
return run_binary_with_args()

help_function/test_help.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def run_test():
101101
args.append("./module.so")
102102
if test_config.current_test == "kernel_function_win":
103103
args.append("./module.dll")
104-
104+
os.environ['CL_CONFIG_CPU_EXPERIMENTAL_FP16']="1"
105105
ret = run_binary_with_args(args)
106106
if test_config.current_test == "async_exception" and "Caught asynchronous SYCL exception" in test_config.command_output and "test_dpct_async_handler" in test_config.command_output:
107107
return True

0 commit comments

Comments
 (0)