Skip to content

Commit

Permalink
Transpile: Fix docstring and constructor usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
mlange05 committed Jan 6, 2025
1 parent ab071e0 commit 94de03e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 deletions loki/transformations/transpile/fortran_c.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,8 @@ class FortranCTransformation(Transformation):
----------
inline_elementals : bool, optional
Inline known elemental function via expression substitution. Default is ``True``.
use_c_ptr : bool, optional
Use ``c_ptr`` for array declarations in the F2C wrapper and ``c_loc(...)`` to pass
the corresponding argument. Default is ``False``.
codegen :
Wrapper function calling the Stringifier instance.
path : str, optional
Path to generate C sources.
language : str
C-style language to generate; should be one of ``['c', 'cpp', 'cuda']``.
"""
# pylint: disable=unused-argument

Expand Down
2 changes: 1 addition & 1 deletion scripts/loki_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ def convert(
f2c_transformation = FortranCTransformation()
f2c_wrapper = FortranISOCWrapperTransformation()
elif mode in ['cuda_parametrise', 'cuda_hoist']:
f2c_transformation = FortranCTransformation(language='cuda', use_c_ptr=True)
f2c_transformation = FortranCTransformation(language='cuda')
f2c_wrapper = FortranISOCWrapperTransformation(language='cuda', use_c_ptr=True)
else:
assert False
Expand Down

0 comments on commit 94de03e

Please sign in to comment.