Skip to content

Commit

Permalink
[L0][HIP][CUDA] Suppress aborted adapter match tests
Browse files Browse the repository at this point in the history
When tests are aborted or failed at the assertion, the match script
receives "Aborted" or "Segmentation fault" as an input and compares it
with the match file. Previous match script allowed those tests to pass
despite not matching this input.
  • Loading branch information
kswiecicki committed Jan 10, 2024
1 parent 876ba5b commit 217f88d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions test/conformance/enqueue/enqueue_adapter_cuda.match
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@
{{OPT}}urEnqueueUSMMemcpy2DNegativeTest.InvalidEventWaitList/NVIDIA_CUDA_BACKEND___{{.*}}___pitch__1__width__1__height__1
{{OPT}}urEnqueueUSMPrefetchWithParamTest.Success/NVIDIA_CUDA_BACKEND___{{.*}}___UR_USM_MIGRATION_FLAG_DEFAULT
{{OPT}}urEnqueueUSMPrefetchWithParamTest.CheckWaitEvent/NVIDIA_CUDA_BACKEND___{{.*}}___UR_USM_MIGRATION_FLAG_DEFAULT
{{OPT}}{{Segmentation fault|Aborted}}
2 changes: 1 addition & 1 deletion test/conformance/enqueue/enqueue_adapter_hip.match
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{OPT}}Segmentation Fault
{{OPT}}{{Segmentation fault|Aborted}}
{{OPT}}urEnqueueDeviceGetGlobalVariableReadTest.Success/AMD_HIP_BACKEND___{{.*}}_
{{OPT}}urEnqueueDeviceGetGlobalVariableReadTest.InvalidEventWaitInvalidEvent/AMD_HIP_BACKEND___{{.*}}_
{{OPT}}urEnqueueDeviceGetGlobalVariableWriteTest.InvalidEventWaitInvalidEvent/AMD_HIP_BACKEND___{{.*}}_
Expand Down
2 changes: 1 addition & 1 deletion test/conformance/event/event_adapter_level_zero.match
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{OPT}}urEventGetInfoTest.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_EVENT_INFO_COMMAND_TYPE
{{OPT}}urEventGetProfilingInfoTest.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_PROFILING_INFO_COMMAND_QUEUED
{{OPT}}urEventGetProfilingInfoTest.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}___UR_PROFILING_INFO_COMMAND_SUBMIT
{{OPT}} Segmentation fault
{{OPT}}{{Segmentation fault|Aborted}}
2 changes: 1 addition & 1 deletion test/conformance/kernel/kernel_adapter_hip.match
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{OPT}}Segmentation Fault
{{OPT}}{{Segmentation fault|Aborted}}
{{OPT}}urKernelGetInfoTest.Success/AMD_HIP_BACKEND___{{.*}}___UR_KERNEL_INFO_NUM_REGS
{{OPT}}urKernelGetInfoTest.InvalidSizeSmall/AMD_HIP_BACKEND___{{.*}}___UR_KERNEL_INFO_FUNCTION_NAME
{{OPT}}urKernelGetInfoTest.InvalidSizeSmall/AMD_HIP_BACKEND___{{.*}}___UR_KERNEL_INFO_NUM_ARGS
Expand Down
2 changes: 1 addition & 1 deletion test/conformance/program/program_adapter_hip.match
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{OPT}}Segmentation Fault
{{OPT}}{{Segmentation fault|Aborted}}
{{OPT}}urProgramCreateWithNativeHandleTest.InvalidNullHandleContext/AMD_HIP_BACKEND___{{.*}}_
{{OPT}}urProgramCreateWithNativeHandleTest.InvalidNullPointerProgram/AMD_HIP_BACKEND___{{.*}}_
{{OPT}}urProgramGetBuildInfoTest.Success/AMD_HIP_BACKEND___{{.*}}___UR_PROGRAM_BUILD_INFO_BINARY_TYPE
Expand Down

0 comments on commit 217f88d

Please sign in to comment.