Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SYCL] Fix the test/basic_tests/buffer/subbuffer.cpp #1277

Merged
merged 6 commits into from
Mar 11, 2020

Conversation

rbegam
Copy link
Contributor

@rbegam rbegam commented Mar 9, 2020

Signed-off-by: Rehana Begam rehana.begam@intel.com

Signed-off-by: Rehana Begam <rehana.begam@intel.com>
@rbegam rbegam force-pushed the private/rbegam/sycl-subbuffer branch from 9faff4b to dbf9462 Compare March 9, 2020 20:03
Signed-off-by: Rehana Begam <rehana.begam@intel.com>
sycl/test/basic_tests/buffer/subbuffer.cpp Outdated Show resolved Hide resolved
sycl/test/basic_tests/buffer/subbuffer.cpp Outdated Show resolved Hide resolved
sycl/test/basic_tests/buffer/subbuffer.cpp Outdated Show resolved Hide resolved
rbegam and others added 3 commits March 10, 2020 10:14
Signed-off-by: Rehana Begam <rehana.begam@intel.com>

Co-Authored-By: Romanov Vlad <17316488+romanovvlad@users.noreply.github.com>
Signed-off-by: Rehana Begam <rehana.begam@intel.com>

Co-Authored-By: Romanov Vlad <17316488+romanovvlad@users.noreply.github.com>
Signed-off-by: Rehana Begam <rehana.begam@intel.com>

Co-Authored-By: Romanov Vlad <17316488+romanovvlad@users.noreply.github.com>
@romanovvlad
Copy link
Contributor

@rbegam Please, please apply clang format.

Signed-off-by: Rehana Begam <rehana.begam@intel.com>
@rbegam
Copy link
Contributor Author

rbegam commented Mar 10, 2020

@romanovvlad done. please review.

@bader bader requested a review from romanovvlad March 10, 2020 19:14
@bader bader changed the title [SYCL] fix the test/basic_tests/buffer/subbuffer.cpp [SYCL] Fix the test/basic_tests/buffer/subbuffer.cpp Mar 10, 2020
@rbegam
Copy link
Contributor Author

rbegam commented Mar 11, 2020

@bader Merging is still blocked. there is no unresolved changes. May be I do not have merge permission. Could you enable merging?

@bader
Copy link
Contributor

bader commented Mar 11, 2020

It is pending approval from @romanovvlad, who requested to make changes.

@romanovvlad romanovvlad merged commit 859a94f into intel:sycl Mar 11, 2020
@rbegam
Copy link
Contributor Author

rbegam commented Mar 11, 2020

thanks @bader and @romanovvlad for the approves.

@rbegam rbegam deleted the private/rbegam/sycl-subbuffer branch March 11, 2020 19:32
alexbatashev pushed a commit to alexbatashev/llvm that referenced this pull request Mar 12, 2020
…e_api_test

* origin/sycl:
  [SYCL][NFC] Fix static code analysis concerns (intel#1283)
  [SYCL] Fix the test/basic_tests/buffer/subbuffer.cpp (intel#1277)
  [SYCL][CUDA] Implement the program kernel names query (intel#1248)
  [SYCL] Honor the LLVM_LIBDIR_SUFFIX variable at installation time (intel#1261)
  [SYCL][UX] Diagnostic for undefined device functions (intel#1026)
  [SYCL] Reverse reqd_work_group_size attribute (intel#1234)
  [SYCL] Rename project to oneAPI DPC++ Compiler (intel#1249)
  [SYCL][XPTI] Instrumentation of SYCL runtime with XPTI (intel#1129)
alexbatashev pushed a commit to alexbatashev/llvm that referenced this pull request Mar 13, 2020
…_private

* origin/sycl:
  [SYCL][NFC] Fix static code analysis concerns (intel#1283)
  [SYCL] Fix the test/basic_tests/buffer/subbuffer.cpp (intel#1277)
alexbatashev added a commit to alexbatashev/llvm that referenced this pull request Mar 13, 2020
…st_commit

* otcshare/sycl: (469 commits)
  [SYCL] Implement thread-local storage restriction (intel#1281)
  [Driver][SYCL][FPGA] Adjust the output location for the project report (intel#1278)
  [SYCL][NFC] Fix static code analysis concerns (intel#1283)
  [SYCL] Fix the test/basic_tests/buffer/subbuffer.cpp (intel#1277)
  [SYCL][CUDA] Implement the program kernel names query (intel#1248)
  [SYCL] Honor the LLVM_LIBDIR_SUFFIX variable at installation time (intel#1261)
  [SYCL][UX] Diagnostic for undefined device functions (intel#1026)
  [SYCL] Reverse reqd_work_group_size attribute (intel#1234)
  [SYCL] Rename project to oneAPI DPC++ Compiler (intel#1249)
  [SYCL][XPTI] Instrumentation of SYCL runtime with XPTI (intel#1129)
  [SYCL] Add buffer dimensions restriction (intel#1147)
  [SYCL][NFC] Update copyright header in handler files (intel#1271)
  [SYCL][NFC] Format the code with clang-format
  [SYCL][Test] Fix SYCL library location path for LIT tests (intel#1228)
  [SYCL][NFC] Fix doxygen warnings (intel#1270)
  [SYCL][CUDA] Add the CUDA backend to the deploy-sycl-toolchain target (intel#1268)
  [SYCL][NFC] Fix a misleading comment regarding the SYCL flow (intel#1266)
  Change capability for SpecId decoration
  README.md: Mention retrieving llvm archive signatures
  travis: Restore macOS builds
  ...
alexbatashev pushed a commit to alexbatashev/llvm that referenced this pull request Mar 15, 2020
…_accessor_refactor

* origin/sycl: (454 commits)
  [SYCL][NFC] Fix static code analysis concerns (intel#1283)
  [SYCL] Fix the test/basic_tests/buffer/subbuffer.cpp (intel#1277)
  [SYCL][CUDA] Implement the program kernel names query (intel#1248)
  [SYCL] Honor the LLVM_LIBDIR_SUFFIX variable at installation time (intel#1261)
  [SYCL][UX] Diagnostic for undefined device functions (intel#1026)
  [SYCL] Reverse reqd_work_group_size attribute (intel#1234)
  [SYCL] Rename project to oneAPI DPC++ Compiler (intel#1249)
  [SYCL][XPTI] Instrumentation of SYCL runtime with XPTI (intel#1129)
  [SYCL] Add buffer dimensions restriction (intel#1147)
  [SYCL][NFC] Update copyright header in handler files (intel#1271)
  [SYCL][NFC] Format the code with clang-format
  [SYCL][Test] Fix SYCL library location path for LIT tests (intel#1228)
  [SYCL][NFC] Fix doxygen warnings (intel#1270)
  [SYCL][CUDA] Add the CUDA backend to the deploy-sycl-toolchain target (intel#1268)
  Change capability for SpecId decoration
  README.md: Mention retrieving llvm archive signatures
  travis: Restore macOS builds
  Fix DebugInfo creation after LLVM change 7a42bab
  Add more missing mixes
  Add missing fixes
  ...
bb-sycl pushed a commit that referenced this pull request Jun 1, 2022
As per issue #1196, the loop induction variable, which is an argument
in the omp.wsloop operation, does not have a memory location, so when
passed to a function or subroutine, the reference to the value is not
a memory location, but the value of the induction variable. The callee
function/subroutine is then trying to dereference memory at address 1
or some other "not a good memory location".

This is fixed by creating a temporary memory location and storing the
value of the induction variable in that.

Test fixes as a consequence of the changed code generated.

Add checking for some of the omp-unstructured.f90 to check for alloca,
store and load operations, to ensure the correct flow. Add a test
for CYCLE inside a omp-do loop.

Also convert to use -emit-fir in the omp-unstructrued, and make
the symbol matching consistent in the omp-wsloop-variable test.

Reviewed By: peixin

Differential Revision: https://reviews.llvm.org/D126711
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants