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
24e0a80a
Commit
24e0a80a
authored
8 years ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
Always print error message, and enable warning by default
parent
a1b13c50
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!25
Fix issue 12 - error message
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
control/auxiliary.c
+1
-8
1 addition, 8 deletions
control/auxiliary.c
control/context.c
+1
-10
1 addition, 10 deletions
control/context.c
with
2 additions
and
18 deletions
control/auxiliary.c
+
1
−
8
View file @
24e0a80a
...
...
@@ -80,14 +80,7 @@ void morse_warning(const char *func_name, char* msg_text)
******************************************************************************/
void
morse_error
(
const
char
*
func_name
,
char
*
msg_text
)
{
MORSE_context_t
*
morse
;
morse
=
morse_context_self
();
if
(
morse
==
NULL
)
morse_fatal_error
(
"morse_error"
,
"MORSE not initialized"
);
if
(
morse
->
errors_enabled
)
fprintf
(
stderr
,
"MORSE ERROR: %s(): %s
\n
"
,
func_name
,
msg_text
);
fprintf
(
stderr
,
"MORSE ERROR: %s(): %s
\n
"
,
func_name
,
msg_text
);
}
/*******************************************************************************
...
...
This diff is collapsed.
Click to expand it.
control/context.c
+
1
−
10
View file @
24e0a80a
...
...
@@ -77,8 +77,7 @@ MORSE_context_t *morse_context_create()
morse
->
ncudas
=
0
;
morse
->
nthreads_per_worker
=
1
;
morse
->
errors_enabled
=
MORSE_FALSE
;
morse
->
warnings_enabled
=
MORSE_FALSE
;
morse
->
warnings_enabled
=
MORSE_TRUE
;
morse
->
autotuning_enabled
=
MORSE_TRUE
;
morse
->
parallel_enabled
=
MORSE_FALSE
;
morse
->
profiling_enabled
=
MORSE_FALSE
;
...
...
@@ -128,7 +127,6 @@ int morse_context_destroy(){
* @param[in] option
* Feature to be enabled:
* @arg MORSE_WARNINGS printing of warning messages,
* @arg MORSE_ERRORS printing of error messages,
* @arg MORSE_AUTOTUNING autotuning for tile size and inner block size.
* @arg MORSE_PROFILING_MODE activate profiling of kernels
* @arg MORSE_PROGRESS activate progress indicator
...
...
@@ -155,9 +153,6 @@ int MORSE_Enable(MORSE_enum option)
case
MORSE_WARNINGS
:
morse
->
warnings_enabled
=
MORSE_TRUE
;
break
;
case
MORSE_ERRORS
:
morse
->
errors_enabled
=
MORSE_TRUE
;
break
;
case
MORSE_AUTOTUNING
:
morse
->
autotuning_enabled
=
MORSE_TRUE
;
break
;
...
...
@@ -201,7 +196,6 @@ int MORSE_Enable(MORSE_enum option)
* @param[in] option
* Feature to be disabled:
* @arg MORSE_WARNINGS printing of warning messages,
* @arg MORSE_ERRORS printing of error messages,
* @arg MORSE_AUTOTUNING autotuning for tile size and inner block size.
* @arg MORSE_PROFILING_MODE deactivate profiling of kernels
* @arg MORSE_PROGRESS deactivate progress indicator
...
...
@@ -227,9 +221,6 @@ int MORSE_Disable(MORSE_enum option)
case
MORSE_WARNINGS
:
morse
->
warnings_enabled
=
MORSE_FALSE
;
break
;
case
MORSE_ERRORS
:
morse
->
errors_enabled
=
MORSE_FALSE
;
break
;
case
MORSE_AUTOTUNING
:
morse
->
autotuning_enabled
=
MORSE_FALSE
;
break
;
...
...
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