Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
elpa
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
11
Issues
11
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
elpa
elpa
Commits
4ffc2622
Commit
4ffc2622
authored
Nov 20, 2018
by
Andreas Marek
Committed by
Pavel Kus
Nov 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
C interface for autotune functions
parent
1c076203
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
0 deletions
+54
-0
src/elpa_impl.F90
src/elpa_impl.F90
+54
-0
No files found.
src/elpa_impl.F90
View file @
4ffc2622
...
...
@@ -1415,6 +1415,34 @@ module elpa_impl
end
subroutine
!c> /*! \brief C interface for the implementation of the elpa_autotune_save_state method
!c> *
!c> * \param elpa_t handle: of the ELPA object which should be tuned
!c> * \param elpa_autotune_t autotune_handle: the autotuning object
!c> * \param error int *
!c> * \result none
!c> */
!c> void elpa_autotune_save_state(elpa_t handle, elpa_autotune_t autotune_handle, int *error);
subroutine
elpa_autotune_save_state_c
(
handle
,
autotune_handle
,
filename_p
,
error
)
bind
(
C
,
name
=
"elpa_autotune_save_state"
)
type
(
c_ptr
),
intent
(
in
),
value
::
handle
type
(
c_ptr
),
intent
(
in
),
value
::
autotune_handle
type
(
elpa_impl_t
),
pointer
::
self
type
(
elpa_autotune_impl_t
),
pointer
::
tune_state
type
(
c_ptr
),
intent
(
in
)
::
filename_p
character
(
len
=
elpa_strlen_c
(
filename_p
)),
pointer
::
filename
integer
(
kind
=
c_int
)
::
error
call
c_f_pointer
(
handle
,
self
)
call
c_f_pointer
(
filename_p
,
filename
)
call
c_f_pointer
(
autotune_handle
,
tune_state
)
call
self
%
autotune_save_state
(
tune_state
,
filename
,
error
)
end
subroutine
!> \brief function to load the state of the autotuning
!> Parameters
!> \param self class(elpa_impl_t) the allocated ELPA object
...
...
@@ -1460,6 +1488,32 @@ module elpa_impl
!c> /*! \brief C interface for the implementation of the elpa_autotune_load_state method
!c> *
!c> * \param elpa_t handle: of the ELPA object which should be tuned
!c> * \param elpa_autotune_t autotune_handle: the autotuning object
!c> * \param error int *
!c> * \result none
!c> */
!c> void elpa_autotune_load_state(elpa_t handle, elpa_autotune_t autotune_handle, int *error);
subroutine
elpa_autotune_load_state_c
(
handle
,
autotune_handle
,
filename_p
,
error
)
bind
(
C
,
name
=
"elpa_autotune_load_state"
)
type
(
c_ptr
),
intent
(
in
),
value
::
handle
type
(
c_ptr
),
intent
(
in
),
value
::
autotune_handle
type
(
elpa_impl_t
),
pointer
::
self
type
(
elpa_autotune_impl_t
),
pointer
::
tune_state
type
(
c_ptr
),
intent
(
in
)
::
filename_p
character
(
len
=
elpa_strlen_c
(
filename_p
)),
pointer
::
filename
integer
(
kind
=
c_int
)
::
error
call
c_f_pointer
(
handle
,
self
)
call
c_f_pointer
(
filename_p
,
filename
)
call
c_f_pointer
(
autotune_handle
,
tune_state
)
call
self
%
autotune_load_state
(
tune_state
,
filename
,
error
)
end
subroutine
!c> /*! \brief C interface for the implementation of the elpa_autotune_set_best method
!c> *
!c> * \param elpa_t handle: of the ELPA object which should be tuned
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment