Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils-sfg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
pystencils-sfg
Merge requests
!3
Add support for sycl accessors
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add support for sycl accessors
ob28imeq/pystencils-sfg:sycl_accessor
into
master
Overview
8
Commits
14
Pipelines
3
Changes
8
All threads resolved!
Hide all comments
Merged
Christoph Alt
requested to merge
ob28imeq/pystencils-sfg:sycl_accessor
into
master
7 months ago
Overview
8
Commits
14
Pipelines
3
Changes
8
All threads resolved!
Hide all comments
Expand
This MR extends the sycl support:
Adding function so that sycl::accessors can be used in the map_field function
Changes the API of the
cgh.parrallel_for
to work like the API of
sfg.function
0
0
Merge request reports
Compare
master
version 2
0ee586ef
7 months ago
version 1
d862626f
7 months ago
master (base)
and
latest version
latest version
f02641fe
14 commits,
7 months ago
version 2
0ee586ef
12 commits,
7 months ago
version 1
d862626f
5 commits,
7 months ago
8 files
+
303
−
17
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
integration/test_sycl_buffer.py
0 → 100644
+
33
−
0
Options
from
pystencils
import
Target
,
CreateKernelConfig
,
no_jit
from
lbmpy
import
create_lb_update_rule
,
LBMOptimisation
from
pystencilssfg
import
SourceFileGenerator
,
SfgConfig
,
OutputMode
from
pystencilssfg.lang.cpp.sycl_accessor
import
sycl_accessor_ref
import
pystencilssfg.extensions.sycl
as
sycl
from
itertools
import
chain
sfg_config
=
SfgConfig
(
output_directory
=
"
out/test_sycl_buffer
"
,
outer_namespace
=
"
gen_code
"
,
output_mode
=
OutputMode
.
INLINE
,
)
with
SourceFileGenerator
(
sfg_config
)
as
sfg
:
sfg
=
sycl
.
SyclComposer
(
sfg
)
gen_config
=
CreateKernelConfig
(
target
=
Target
.
SYCL
,
jit
=
no_jit
)
opt
=
LBMOptimisation
(
field_layout
=
"
fzyx
"
)
update
=
create_lb_update_rule
(
lbm_optimisation
=
opt
)
kernel
=
sfg
.
kernels
.
create
(
update
,
"
lbm_update
"
,
gen_config
)
cgh
=
sfg
.
sycl_handler
(
"
handler
"
)
rang
=
sfg
.
sycl_range
(
update
.
method
.
dim
,
"
range
"
)
mappings
=
[
sfg
.
map_field
(
field
,
sycl_accessor_ref
(
field
))
for
field
in
chain
(
update
.
free_fields
,
update
.
bound_fields
)
]
sfg
.
function
(
"
lb_update
"
)(
cgh
.
parallel_for
(
rang
)(
*
mappings
,
sfg
.
call
(
kernel
),
),
)
Loading