Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Chameleon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
Chameleon
Commits
d4488bec
Commit
d4488bec
authored
9 years ago
by
PRUVOST Florent
Browse files
Options
Downloads
Patches
Plain Diff
update f90 interface
parent
9979d60b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
control/morse_f90.f90
+7
-7
7 additions, 7 deletions
control/morse_f90.f90
include/CMakeLists.txt
+1
-0
1 addition, 0 deletions
include/CMakeLists.txt
include/morse_fortran.h
+3
-2
3 additions, 2 deletions
include/morse_fortran.h
with
11 additions
and
9 deletions
control/morse_f90.f90
+
7
−
7
View file @
d4488bec
...
...
@@ -90,12 +90,12 @@ module morse
integer
,
parameter
::
dp
=
kind
(
0.0d0
)
interface
function
MORSE_Init_c
(
c
ore
s
)
&
function
MORSE_Init_c
(
c
pus
,
gpu
s
)
&
&
bind
(
c
,
name
=
'MORSE_Init'
)
use
iso_c_binding
implicit
none
integer
(
kind
=
c_int
)
::
MORSE_Init_c
integer
(
kind
=
c_int
),
value
::
c
ore
s
integer
(
kind
=
c_int
),
value
::
c
pus
,
gpu
s
end
function
MORSE_Init_c
end
interface
...
...
@@ -209,11 +209,11 @@ module morse
end
interface
interface
function
MORSE_Init_Affinity_c
(
cores
,
bindtab
)
&
function
MORSE_Init_Affinity_c
(
cores
,
gpus
,
bindtab
)
&
&
bind
(
c
,
name
=
'MORSE_Init_Affinity'
)
use
iso_c_binding
integer
(
kind
=
c_int
)
::
MORSE_Init_Affinity_c
integer
(
kind
=
c_int
),
value
::
cores
integer
(
kind
=
c_int
),
value
::
cores
,
gpus
type
(
c_ptr
),
value
::
bindtab
end
function
MORSE_Init_Affinity_c
end
interface
...
...
@@ -296,12 +296,12 @@ module morse
contains
subroutine
morse_init
(
n
cores
,
info
)
subroutine
morse_init
(
cores
,
gpus
,
info
)
use
iso_c_binding
implicit
none
integer
(
kind
=
c_int
),
intent
(
in
)
::
n
cores
integer
(
kind
=
c_int
),
intent
(
in
)
::
cores
,
gpus
integer
(
kind
=
c_int
),
intent
(
out
)
::
info
info
=
morse_init_c
(
n
cores
)
info
=
morse_init_c
(
cores
,
gpus
)
morse_initialized
=
.true.
end
subroutine
morse_init
...
...
This diff is collapsed.
Click to expand it.
include/CMakeLists.txt
+
1
−
0
View file @
d4488bec
...
...
@@ -65,6 +65,7 @@ add_custom_target(chameleon_include ALL SOURCES ${CHAMELEON_HDRS})
set
(
HDR_INSTALL
morse_constants.h
morse_fortran.h
morse_kernels.h
morse_simulate.h
morse_struct.h
...
...
This diff is collapsed.
Click to expand it.
include/morse_fortran.h
+
3
−
2
View file @
d4488bec
...
...
@@ -164,12 +164,13 @@
!
State
machine
switches
!
integer
MORSE_WARNINGS
,
MORSE_ERRORS
,
MORSE_AUTOTUNING
integer
MORSE_DAG
integer
MORSE_DAG
,
MORSE_PROFILING_MODE
,
MORSE_PARALLEL_MODE
integer
MORSE_BOUND
parameter
(
MORSE_WARNINGS
=
1
)
parameter
(
MORSE_ERRORS
=
2
)
parameter
(
MORSE_AUTOTUNING
=
3
)
parameter
(
MORSE_DAG
=
4
)
parameter
(
MORSE_PROFILING_MO
S
E
=
5
)
parameter
(
MORSE_PROFILING_MO
D
E
=
5
)
parameter
(
MORSE_PARALLEL_MODE
=
6
)
parameter
(
MORSE_BOUND
=
7
)
...
...
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