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
Commits
28941cae
Commit
28941cae
authored
3 months ago
by
Frederik Hennig
Browse files
Options
Downloads
Patches
Plain Diff
disable formatting on GPU invocations to avoid clang-format breaking cuda/hip code
parent
069d274d
Branches
Branches containing commit
No related tags found
1 merge request
!24
Extend Support for CUDA and HIP kernel invocations
Pipeline
#75801
failed
3 months ago
Stage: Code Quality
Stage: Tests
Stage: Documentation
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pystencilssfg/composer/gpu_composer.py
+11
-6
11 additions, 6 deletions
src/pystencilssfg/composer/gpu_composer.py
with
11 additions
and
6 deletions
src/pystencilssfg/composer/gpu_composer.py
+
11
−
6
View file @
28941cae
...
...
@@ -162,12 +162,17 @@ class SfgGpuComposer(SfgComposerMixIn):
)
stmt_stream
=
make_statements
(
stream
)
if
stream
is
not
None
else
None
return
SfgGpuKernelInvocation
(
kernel_handle
,
stmt_grid_size
,
stmt_block_size
,
shared_memory_bytes
=
stmt_smem
,
stream
=
stmt_stream
,
return
self
.
seq
(
"
// clang-format off:
"
"
[pystencils-sfg] Formatting may add illegal spaces between angular brackets in `<<< >>>`.
"
,
SfgGpuKernelInvocation
(
kernel_handle
,
stmt_grid_size
,
stmt_block_size
,
shared_memory_bytes
=
stmt_smem
,
stream
=
stmt_stream
,
),
"
// clang-format on
"
,
)
def
to_uint32_t
(
expr
:
AugExpr
)
->
AugExpr
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment