Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Remove 6 ESIMD and InlineAsm tests' XFAIL when GPU uplift #232

Merged
merged 2 commits into from
Apr 15, 2021

Conversation

yanfeng3721
Copy link

The following 6 tests begin to PASS after intel/llvm#3386
4 tests unexpected pass on level_zero:gpu
SYCL :: ESIMD/spec_const/spec_const_char.cpp
SYCL :: ESIMD/spec_const/spec_const_short.cpp
SYCL :: ESIMD/spec_const/spec_const_uchar.cpp
SYCL :: ESIMD/spec_const/spec_const_ushort.cpp
2 tests unexpected pass on level_zero:gpu/opencl:gpu
SYCL :: InlineAsm/asm_loop.cpp
SYCL :: InlineAsm/asm_switch.cpp

Remove llvm-test-suite "//XFAIL: level_zero" for ESIMD test, and "//XFAIL:*" for InlineAsm test.

Copy link

@kbobrovs kbobrovs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change PR title - this is not what the patch is actually doing.

@kbobrovs kbobrovs dismissed their stale review April 14, 2021 02:47

Looked at the wrong commit

@kbobrovs
Copy link

@smaslov-intel, do you know what recent changes in level-zero lead to specialization constants tests passing?

@smaslov-intel
Copy link

@smaslov-intel, do you know what recent changes in level-zero lead to specialization constants tests passing?

No idea. There haven't been any works recently specifically related to spec consts.
How were they failing previously?

@kbobrovs
Copy link

How were they failing previously?

@yanfeng3721 - redirect the q to you.

@yanfeng3721
Copy link
Author

How were they failing previously?

@yanfeng3721 - redirect the q to you.

With uplift Linux GPU RT >=21.11.19310(also required Level zero loader v1.2.3), the 6 test could pass.

@yanfeng3721 yanfeng3721 requested a review from vladimirlaz April 14, 2021 04:36
@vladimirlaz vladimirlaz requested a review from kbobrovs April 14, 2021 04:55
@kbobrovs
Copy link

How were they failing previously?

@yanfeng3721 - redirect the q to you.

With uplift Linux GPU RT >=21.11.19310(also required Level zero loader v1.2.3), the 6 test could pass.

@yanfeng3721, how the tests were failing previously - what was the diagnostics?

@yanfeng3721
Copy link
Author

yanfeng3721 commented Apr 14, 2021

How were they failing previously?

@yanfeng3721 - redirect the q to you.

With uplift Linux GPU RT >=21.11.19310(also required Level zero loader v1.2.3), the 6 test could pass.

@yanfeng3721, how the tests were failing previously - what was the diagnostics?

Thanks for your review.
I think the previous fail is only reproduced with GUP RT 21.09.19150 and lower(please see the following error log), we need to uplift GPU RT with latest version 21.11.19310(intel/llvm#3386), it is better to merge the #232 at the same time. And I have asked @vladimirlaz to help to merge those PR at the same time if it has been approved.
Driver version : 21.09.19150
-- Testing: 1 tests, 1 workers --
XFAIL: SYCL :: ESIMD/spec_const/spec_const_char.cpp (1 of 1)
Exit Code: -6
Command Output (stdout):

@kbobrovs
Copy link

kbobrovs commented Apr 14, 2021

spec_const/spec_const_char.cpp

OK, here is how this test failed before:

spec_const_char.cpp.tmp.out: .../llvm-spirv-vc/lib/SPIRV/SPIRVReader.cpp:1350:
llvm::Value* SPIRV::SPIRVToLLVM::transValueWithoutDecoration(SPIRV::SPIRVValue*, llvm::Function*, llvm::BasicBlock*, bool):
Assertion
`(BT->getBitWidth() == 64 || (ConstValue >> BT->getBitWidth()) == 0) && "Size of externally provided specialization constant value doesn't" "fit into the specialization constant type"'
failed.

error: command failed with exit status: -6

Looks like OpenCL and LevelZero used different SPIRV readers.

Copy link

@kbobrovs kbobrovs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I approve the esimd part.

@vladimirlaz vladimirlaz merged commit 62b573e into intel:intel Apr 15, 2021
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Apr 12, 2022
…iles on 20210422 for xmain branch

Cherry-pick 62b573e:
[SYCL] Remove 6 ESIMD and InlineAsm tests' XFAIL when GPU uplift (intel#232)

Change-Id: I36f558f2d86738debc21175fbc814063d79acbe5
Reviewed-on: https://git-amr-2.devtools.intel.com/gerrit/322889
Tested-by: CE Jenkins <[email protected]>
Reviewed-by: sys_bbsycl <[email protected]>
Tested-by: sys_bbsycl <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants