Skip to content

Commit a7a6765

Browse files
Merge branch 'SYCL-2020' into steffen/split_math_builtin_tests
2 parents e12d9de + db26da8 commit a7a6765

File tree

54 files changed

+513
-967
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+513
-967
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ Finally, start the compilation:
4545
`cmake --build ./build`
4646

4747
After the compilation has finished, test executables for each category will be
48-
placed in the `build/bin` directory. The `test_all` executable contains tests
49-
for all categories.
48+
placed in the `build/bin` directory.
5049

5150
### CMake Configuration Options
5251

@@ -98,7 +97,7 @@ Additionally, the following SYCL implementation-specific options can be used:
9897

9998
Each of the executables produced in the `build/bin` directory acts as a
10099
standalone test runner that can be used to launch tests for a particular test
101-
category (or all tests in the case of `build/bin/test_all`).
100+
category.
102101

103102
The ``--device`` argument is used to specify which device to run the tests on.
104103
Selection is based on substring matching of the device name. ECMAScript regular

ci/generate_exclude_filter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def query_cmake_targets(build_dir: str):
8888
cmake_targets = []
8989
for rt in raw_targets:
9090
m = target_pattern.match(rt)
91-
if m and m.group(1) != 'test_all':
91+
if m:
9292
cmake_targets.append(m.group(1))
9393

9494
return cmake_targets

ci/hipsycl.filter

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@ item
1818
kernel
1919
kernel_args
2020
kernel_bundle
21-
marray
21+
marray_basic
22+
marray_bitwise
23+
marray_pre_post
24+
marray_relational
25+
marray_arithmetic_assignment
26+
marray_arithmetic_binary
2227
math_builtin_api
23-
marray
2428
multi_ptr
2529
nd_item
2630
nd_range

docs/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ This adds a test case with the description `"a simple test case"` and the _tag_
230230
Both can later be used to narrow down the set of test cases that will be executed during runtime.
231231

232232
When configuring CMake, the new test category will automatically be detected and a target with the name `test_simple` is added.
233-
You can run the test case by either executing `./bin/test_simple` directly, or alternatively as part of `./bin/test_all`.
233+
You can run the test case by executing `./bin/test_simple`.
234234

235235
IMPORTANT: For historic reasons, the CTS currently contains many test cases that are written in a different style.
236236
Please see <<New-style vs Legacy Test Cases>> for more information.

run_conformance_tests.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,13 @@ def handle_args(argv):
8888
help='Skip build step and perform only testing for already compiled tests.',
8989
required=False,
9090
action='store_true')
91+
parser.add_argument('--commit-hash',
92+
help='Original SYCL-CTS commit hash used for the run',
93+
type=str,
94+
required=False)
9195
args = parser.parse_args(argv)
9296

97+
commit_hash = args.commit_hash if args.commit_hash else 'Not specified'
9398
full_conformance = 'OFF' if args.fast else 'ON'
9499
test_deprecated_features = 'OFF' if args.disable_deprecated_features else 'ON'
95100
full_feature_set = 'OFF' if args.reduced_feature_set else 'ON'
@@ -103,7 +108,7 @@ def handle_args(argv):
103108
full_conformance, test_deprecated_features, args.exclude_categories,
104109
args.implementation_name, args.additional_cmake_args, args.device,
105110
args.additional_ctest_args, args.build_only, args.run_only,
106-
full_feature_set)
111+
commit_hash, full_feature_set)
107112

108113

109114
def split_additional_args(additional_args):
@@ -247,7 +252,7 @@ def get_xml_test_results():
247252
def update_xml_attribs(info_json, implementation_name, test_xml_root,
248253
full_conformance, cmake_call, build_system_name,
249254
build_system_call, ctest_call, test_deprecated_features,
250-
full_feature_set):
255+
commit_hash, full_feature_set):
251256
"""
252257
Adds attributes to the root of the xml trees json required by the
253258
conformance report.
@@ -274,6 +279,7 @@ def update_xml_attribs(info_json, implementation_name, test_xml_root,
274279
test_xml_root.attrib["DeviceFP64"] = info_json['device-fp64']
275280

276281
# Set Build Information attribs
282+
test_xml_root.attrib["CommitHash"] = commit_hash
277283
test_xml_root.attrib["FullConformanceMode"] = full_conformance
278284
test_xml_root.attrib["CMakeInput"] = ' '.join(cmake_call)
279285
test_xml_root.attrib["BuildSystemGenerator"] = build_system_name
@@ -291,7 +297,7 @@ def main(argv=sys.argv[1:]):
291297
(cmake_exe, build_system_name, build_system_call, full_conformance,
292298
test_deprecated_features, exclude_categories, implementation_name,
293299
additional_cmake_args, device, additional_ctest_args,
294-
build_only, run_only, full_feature_set) = handle_args(argv)
300+
build_only, run_only, commit_hash, full_feature_set) = handle_args(argv)
295301

296302
# Generate a cmake call in a form accepted by subprocess.call()
297303
cmake_call = generate_cmake_call(cmake_exe, build_system_name,
@@ -326,6 +332,7 @@ def main(argv=sys.argv[1:]):
326332
cmake_call, build_system_name,
327333
build_system_call, ctest_call,
328334
test_deprecated_features,
335+
commit_hash,
329336
full_feature_set)
330337

331338
# Get the xml report stylesheet and add it to the results.

tests/CMakeLists.txt

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,26 @@ function(get_std_type OUT_LIST)
4545
set(${OUT_LIST} ${${OUT_LIST}} ${STD_TYPE_LIST} PARENT_SCOPE)
4646
endfunction()
4747

48+
function(get_marray_elem_type OUT_LIST)
49+
set(TYPE_LIST "")
50+
get_std_type(TYPE_LIST)
51+
52+
list(APPEND TYPE_LIST "custom_int")
53+
54+
if(SYCL_CTS_ENABLE_FULL_CONFORMANCE)
55+
list(APPEND TYPE_LIST
56+
"std::uint8_t"
57+
"std::int16_t"
58+
"std::uint16_t"
59+
"std::uint32_t"
60+
"std::int64_t"
61+
"std::uint64_t"
62+
)
63+
endif()
64+
65+
set(${OUT_LIST} ${${OUT_LIST}} ${TYPE_LIST} PARENT_SCOPE)
66+
endfunction()
67+
4868
function(get_no_vec_alias_type OUT_LIST)
4969
set(NO_VEC_ALIAS_LIST "")
5070
list(APPEND NO_VEC_ALIAS_LIST sycl::byte)
@@ -248,8 +268,6 @@ function(add_cts_test_helper)
248268
set_property(TARGET ${test_exe_name}_objects
249269
PROPERTY FOLDER "Tests/${test_exe_name}")
250270

251-
target_sources(test_all PRIVATE $<TARGET_OBJECTS:${test_exe_name}_objects>)
252-
253271
add_dependencies(test_conformance ${test_exe_name})
254272
endfunction()
255273

@@ -294,7 +312,3 @@ foreach(dir ${test_category_dirs})
294312
add_subdirectory(${dir})
295313
endif()
296314
endforeach()
297-
298-
target_link_libraries(test_all PRIVATE CTS::util CTS::main_function oclmath)
299-
target_link_libraries(test_all PRIVATE Catch2::Catch2 Threads::Threads)
300-
add_sycl_to_target(TARGET test_all)

tests/marray/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/marray/marray_alignment_fp16.cpp

Lines changed: 0 additions & 45 deletions
This file was deleted.

tests/marray/marray_alignment_fp64.cpp

Lines changed: 0 additions & 45 deletions
This file was deleted.

tests/marray/marray_constructor_fp16.cpp

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)