Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
AGULLO Emmanuel
Chameleon
Commits
c84374ab
Commit
c84374ab
authored
Jun 22, 2015
by
PRUVOST Florent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sources inherits version numbers from the main CMakeLists.txt file
parent
4cd180bc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
16 deletions
+17
-16
CMakeLists.txt
CMakeLists.txt
+5
-1
example/lapack_to_morse/step0.h
example/lapack_to_morse/step0.h
+1
-8
include/CMakeLists.txt
include/CMakeLists.txt
+5
-1
include/morse.h.in
include/morse.h.in
+6
-6
No files found.
CMakeLists.txt
View file @
c84374ab
...
...
@@ -37,9 +37,13 @@ if("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}")
endif
()
# set project version number
set
(
MORSE_VERSION_MAJOR 1
)
set
(
MORSE_VERSION_MINOR 0
)
set
(
MORSE_VERSION_MICRO 0
)
# set subproject version number
set
(
CHAMELEON_VERSION_MAJOR 0
)
set
(
CHAMELEON_VERSION_MINOR 9
)
set
(
CHAMELEON_VERSION_
PATCH
1
)
set
(
CHAMELEON_VERSION_
MICRO
1
)
set
(
MORSE_DISTRIB_DIR
""
CACHE PATH
"Directory of MORSE distribution"
)
...
...
example/lapack_to_morse/step0.h
View file @
c84374ab
...
...
@@ -35,10 +35,6 @@
#include <coreblas/include/cblas.h>
#include <coreblas/include/lapacke.h>
#define CHAMELEON_VERSION_MAJOR 0
#define CHAMELEON_VERSION_MINOR 9
#define CHAMELEON_VERSION_MICRO 0
/* Integer parameters for step0 */
enum
iparam_step0
{
IPARAM_THRDNBR
,
/* Number of cores */
...
...
@@ -112,15 +108,12 @@ static void print_header(char *prog_name, int * iparam) {
#endif
printf
(
"#
\n
"
"# CHAMELEON
%d.%d.%d,
%s
\n
"
"# CHAMELEON %s
\n
"
"# Nb threads: %d
\n
"
"# N: %d
\n
"
"# IB: %d
\n
"
"# eps: %e
\n
"
"#
\n
"
,
CHAMELEON_VERSION_MAJOR
,
CHAMELEON_VERSION_MINOR
,
CHAMELEON_VERSION_MICRO
,
prog_name
,
iparam
[
IPARAM_THRDNBR
],
iparam
[
IPARAM_N
],
...
...
include/CMakeLists.txt
View file @
c84374ab
...
...
@@ -40,6 +40,10 @@ set(ZHDR
precisions_rules_py
(
CHAMELEON_HDRS_GENERATED
"
${
ZHDR
}
"
PRECISIONS
"z;c;d;s;zc;ds"
)
configure_file
(
"morse.h.in"
"morse.h"
@ONLY
)
# Define the list of headers
# --------------------------
set
(
CHAMELEON_HDRS
...
...
@@ -70,12 +74,12 @@ set(HDR_INSTALL
morse_simulate.h
morse_struct.h
morse_types.h
morse.h
runtime.h
)
foreach
(
hdr_file
${
CHAMELEON_HDRS_GENERATED
}
)
list
(
APPEND HDR_INSTALL
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
hdr_file
}
)
endforeach
()
list
(
APPEND HDR_INSTALL
${
CMAKE_CURRENT_BINARY_DIR
}
/morse.h
)
# installation
# ------------
...
...
include/morse.h
→
include/morse.h
.in
View file @
c84374ab
...
...
@@ -27,13 +27,13 @@
#ifndef _MORSE_H_
#define _MORSE_H_
#define MORSE_VERSION_MAJOR
1
#define MORSE_VERSION_MINOR
0
#define MORSE_VERSION_MICRO
0
#define MORSE_VERSION_MAJOR
@MORSE_VERSION_MAJOR@
#define MORSE_VERSION_MINOR
@MORSE_VERSION_MINOR@
#define MORSE_VERSION_MICRO
@MORSE_VERSION_MICRO@
#define CHAMELEON_VERSION_MAJOR
0
#define CHAMELEON_VERSION_MINOR
9
#define CHAMELEON_VERSION_MICRO
0
#define CHAMELEON_VERSION_MAJOR
@CHAMELEON_VERSION_MAJOR@
#define CHAMELEON_VERSION_MINOR
@CHAMELEON_VERSION_MINOR@
#define CHAMELEON_VERSION_MICRO
@CHAMELEON_VERSION_MICRO@
/* ****************************************************************************
...
...
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