forked from utwente-fmt/vercors
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ability to use variables as range parameters
- Loading branch information
Ellen Wittingen
committed
Dec 6, 2023
1 parent
9d3883a
commit f28fed3
Showing
8 changed files
with
332 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include <sycl/sycl.hpp> | ||
|
||
/*@ | ||
requires \pointer(a, 10, write); | ||
requires \pointer(b, 10, write); | ||
requires \pointer(c, 10, write); | ||
*/ | ||
void test(bool* a, int* b, float* c) { // Does not work when using a[] instead of *a | ||
sycl::buffer<bool, 1> aBuffer = sycl::buffer(a, sycl::range<1>(10)); | ||
sycl::buffer<int, 2> bBuffer = sycl::buffer(b, sycl::range<2>(2, 5)); | ||
sycl::buffer<float, 3> cBuffer = sycl::buffer(c, sycl::range<3>(2, 5, 1)); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.