[SYCL][New offload model] Add SYCL E2E tests for --offload-new-driver option and fix failing tests#14730
Conversation
1954f0f to
20e81e2
Compare
|
Hi @sarnex @maksimsab and @mdtoguchi Can you please take a look? I have aligned new offloading model flow with old offloading flow for 3rd party hardware. Thanks |
|
Hi @Naghasan, Can you please take a look? Thanks |
There was a problem hiding this comment.
nit: if we are returning, do we need to std::move?
There was a problem hiding this comment.
I see that std::move has been used wherever we are returning Err. I followed the trend.
There was a problem hiding this comment.
do we know why this is SYCL specific and not NVPTX specific?
There was a problem hiding this comment.
For now, I am trying to match the behavior of new offloading model with that found in the new offloading model (for SYCL). This particular flow (getting the assembly file from the clang call and then explicitly calling ptxas inside the linker-wrapper tool) matches with what is found in the old offloading model, but does not match the community flow. Hence the SYCL specificity. This surely warrants revisiting at a later time.
There was a problem hiding this comment.
Can we move the NVPTX code inside the if into a separate function?
There was a problem hiding this comment.
Is there a specific reason for this change?
Thanks
There was a problem hiding this comment.
I thought for the loop was getting a bit complicated
There was a problem hiding this comment.
I revisited the code. I agree that the loop is getting a bit complicated. But I am not able to come up with a 'logical' split to move the NVPTX case into a new function.
There was a problem hiding this comment.
do we need a copyright header?
There was a problem hiding this comment.
This file was lifted from here: ./sycl/test-e2e/DeviceCodeSplit/Inputs/split-per-source-second-file.cpp where I do not find a copyright header.
There was a problem hiding this comment.
we also need any-device-is-cpu i think
There was a problem hiding this comment.
I am not aware of this setting. But I can add that here. Again this test was lifted from ./sycl/test-e2e/DeviceCodeSplit/aot-cpu.cpp and I added --offload-new-driver
There was a problem hiding this comment.
need any-device-is-cpu here too i think
There was a problem hiding this comment.
Same as above comments. Thanks
There was a problem hiding this comment.
you might be able to use %{build} here
There was a problem hiding this comment.
do we have a tracker for this XFAIL?
There was a problem hiding this comment.
Not sure. I see the PR marking this as XFAIL here: intel/llvm-test-suite#525 But there is no related 'issue' for this.
There was a problem hiding this comment.
-fsycl-dead-args-optimization seems to be enabled by default, so do we really need to pass it everywhere?
There was a problem hiding this comment.
I have lifted this file again from ./sycl/test-e2e/DeviceCodeSplit/aot-cpu.cpp. May be we can have a cleanup PR later on?
There was a problem hiding this comment.
is there a test we can update to verify that --cuda-path is being passed from the driver?
There was a problem hiding this comment.
Good point. Coming soon!!
There was a problem hiding this comment.
Added in the latest commit
|
Protex IP scan reports are based on 'already' existing tests. It is unclear to me about the action items. |
a5fcb73 to
8fdc107
Compare
|
Hi @sarnex Thanks so much for the feedback. A quick summary of my responses to your comments about the 'newly' added tests. Thanks |
|
Okay with me! |
sarnex
left a comment
There was a problem hiding this comment.
lgtm as incremental change, hopefully we can address the cleanup tasks soon
47c3185 to
97fbc98
Compare
… option Signed-off-by: Arvind Sudarsanam <arvind.sudarsanam@intel.com>
…ckend compilation Signed-off-by: Arvind Sudarsanam <arvind.sudarsanam@intel.com>
Signed-off-by: Arvind Sudarsanam <arvind.sudarsanam@intel.com>
Signed-off-by: Arvind Sudarsanam <arvind.sudarsanam@intel.com>
Signed-off-by: Arvind Sudarsanam <arvind.sudarsanam@intel.com>
Signed-off-by: Arvind Sudarsanam <arvind.sudarsanam@intel.com>
Signed-off-by: Arvind Sudarsanam <arvind.sudarsanam@intel.com>
Signed-off-by: Arvind Sudarsanam <arvind.sudarsanam@intel.com>
Signed-off-by: Arvind Sudarsanam <arvind.sudarsanam@intel.com>
2b6e88d to
151909a
Compare
This reverts commit 151909a.
Signed-off-by: Arvind Sudarsanam <arvind.sudarsanam@intel.com>
Signed-off-by: Arvind Sudarsanam <arvind.sudarsanam@intel.com>
Signed-off-by: Arvind Sudarsanam <arvind.sudarsanam@intel.com>
|
@intel/llvm-gatekeepers precommit failure is a known-issue due to |
… option and fix failing tests (intel#14730) This PR is used to add a set of SYCL E2E tests with --offload-new-driver enabled. Some failures related to offloading to 3rd party hardware have been resolved. --------- Signed-off-by: Arvind Sudarsanam <arvind.sudarsanam@intel.com>
This PR is used to add a set of SYCL E2E tests with --offload-new-driver enabled.
Some failures related to offloading to 3rd party hardware have been resolved.