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
1ad1746d
Commit
1ad1746d
authored
2 years ago
by
Philippe SWARTVAGHER
Browse files
Options
Downloads
Patches
Plain Diff
Do not attempt to shutdown StarPU if initialization failed
parent
e7e1c903
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!337
Do not attempt to shutdown StarPU if initialization failed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
runtime/starpu/control/runtime_control.c
+11
-5
11 additions, 5 deletions
runtime/starpu/control/runtime_control.c
with
11 additions
and
5 deletions
runtime/starpu/control/runtime_control.c
+
11
−
5
View file @
1ad1746d
...
@@ -29,6 +29,8 @@
...
@@ -29,6 +29,8 @@
#include
<starpu_fxt.h>
#include
<starpu_fxt.h>
#endif
#endif
static
int
starpu_initialized
=
0
;
/**
/**
*
*
*/
*/
...
@@ -56,7 +58,7 @@ static int chameleon_starpu_init( starpu_conf_t *conf )
...
@@ -56,7 +58,7 @@ static int chameleon_starpu_init( starpu_conf_t *conf )
if
(
rc
<
0
)
{
if
(
rc
<
0
)
{
return
CHAMELEON_ERR_NOT_INITIALIZED
;
return
CHAMELEON_ERR_NOT_INITIALIZED
;
}
}
starpu_mpi_init
(
NULL
,
NULL
,
!
flag
);
rc
=
starpu_mpi_init
(
NULL
,
NULL
,
!
flag
);
# endif
# endif
}
}
#else
#else
...
@@ -143,6 +145,12 @@ int RUNTIME_init( CHAM_context_t *chamctxt,
...
@@ -143,6 +145,12 @@ int RUNTIME_init( CHAM_context_t *chamctxt,
chamctxt
->
nthreads_per_worker
=
nthreads_per_worker
;
chamctxt
->
nthreads_per_worker
=
nthreads_per_worker
;
}
}
if
(
hres
!=
CHAMELEON_SUCCESS
)
{
return
hres
;
}
starpu_initialized
=
1
;
#ifdef HAVE_STARPU_MALLOC_ON_NODE_SET_DEFAULT_FLAGS
#ifdef HAVE_STARPU_MALLOC_ON_NODE_SET_DEFAULT_FLAGS
starpu_malloc_on_node_set_default_flags
(
STARPU_MAIN_RAM
,
STARPU_MALLOC_PINNED
|
STARPU_MALLOC_COUNT
starpu_malloc_on_node_set_default_flags
(
STARPU_MAIN_RAM
,
STARPU_MALLOC_PINNED
|
STARPU_MALLOC_COUNT
#ifdef STARPU_MALLOC_SIMULATION_FOLDED
#ifdef STARPU_MALLOC_SIMULATION_FOLDED
...
@@ -165,10 +173,8 @@ int RUNTIME_init( CHAM_context_t *chamctxt,
...
@@ -165,10 +173,8 @@ int RUNTIME_init( CHAM_context_t *chamctxt,
*/
*/
void
RUNTIME_finalize
(
CHAM_context_t
*
chamctxt
)
void
RUNTIME_finalize
(
CHAM_context_t
*
chamctxt
)
{
{
(
void
)
chamctxt
;
/* StarPU was already initialized by an external library or was not successfully initialized: */
if
(
(
chamctxt
->
schedopt
==
NULL
)
||
!
starpu_initialized
)
{
/* StarPU was already initialized by an external library */
if
(
chamctxt
->
schedopt
==
NULL
)
{
return
;
return
;
}
}
...
...
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