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
35b81738
Commit
35b81738
authored
3 years ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
Fix return value when calling RUNTIME_Init()
parent
3ab3f937
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
control/control.c
+1
-4
1 addition, 4 deletions
control/control.c
with
1 addition
and
4 deletions
control/control.c
+
1
−
4
View file @
35b81738
...
@@ -82,7 +82,6 @@ int __chameleon_init(int cores, int gpus)
...
@@ -82,7 +82,6 @@ int __chameleon_init(int cores, int gpus)
int
__chameleon_initpar
(
int
ncpus
,
int
ncudas
,
int
nthreads_per_worker
)
int
__chameleon_initpar
(
int
ncpus
,
int
ncudas
,
int
nthreads_per_worker
)
{
{
CHAM_context_t
*
chamctxt
;
CHAM_context_t
*
chamctxt
;
int
res
=
-
1
;
/* Create context and insert in the context map */
/* Create context and insert in the context map */
chamctxt
=
chameleon_context_create
();
chamctxt
=
chameleon_context_create
();
...
@@ -114,9 +113,7 @@ int __chameleon_initpar(int ncpus, int ncudas, int nthreads_per_worker)
...
@@ -114,9 +113,7 @@ int __chameleon_initpar(int ncpus, int ncudas, int nthreads_per_worker)
}
}
#endif
#endif
res
=
RUNTIME_init
(
chamctxt
,
ncpus
,
ncudas
,
nthreads_per_worker
);
return
RUNTIME_init
(
chamctxt
,
ncpus
,
ncudas
,
nthreads_per_worker
);
return
res
==
0
?
CHAMELEON_SUCCESS
:
res
;
}
}
/**
/**
...
...
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