Skip to content

Commit 3c73df3

Browse files
authored
[SYCLomatic] Fix the test case thrust-rawptr-noneusm to make sure it can be run and pass (oneapi-src#214)
Signed-off-by: Huang, Andy <[email protected]>
1 parent 28ecc02 commit 3c73df3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

features/feature_case/thrust/thrust-rawptr-noneusm.cu

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
#include <thrust/gather.h>
1515
#include <thrust/scatter.h>
1616
#include "report.h"
17+
// for cuda 12.0
18+
#include <thrust/partition.h>
19+
#include <thrust/unique.h>
20+
1721

1822
struct greater_than_zero
1923
{

run_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def is_platform_supported(platform_rule_list):
272272

273273
def is_option_supported(option_rule_list):
274274
for option_rule in option_rule_list:
275-
if option_rule.exclude_option in test_config.test_option and not option_rule.not_double_type_feature:
275+
if option_rule.exclude_option != "" and option_rule.exclude_option in test_config.test_option and not option_rule.not_double_type_feature:
276276
return False
277277
elif option_rule.only_option not in test_config.test_option:
278278
return False
@@ -514,4 +514,4 @@ def main():
514514
print("----------------Test pass-----------------")
515515

516516
if __name__ == "__main__":
517-
main()
517+
main()

0 commit comments

Comments
 (0)