Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
spm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
spm
Commits
815cbe50
Commit
815cbe50
authored
7 years ago
by
Mathieu Faverge
Browse files
Options
Downloads
Plain Diff
Merge branch 'feature/lascl' into 'master'
Feature/lascl See merge request
!11
parents
017d976c
ac60eae3
No related branches found
No related tags found
1 merge request
!11
Feature/lascl
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cmake_modules/morse_cmake
+1
-1
1 addition, 1 deletion
cmake_modules/morse_cmake
include/spm_config.h.in
+3
-0
3 additions, 0 deletions
include/spm_config.h.in
src/z_spm_matrixvector.c
+23
-0
23 additions, 0 deletions
src/z_spm_matrixvector.c
with
27 additions
and
1 deletion
morse_cmake
@
dd40b792
Compare
d44efd0e
...
dd40b792
Subproject commit d
44efd0e4af75cf4be6b9483198c595b03ec083a
Subproject commit d
d40b792c7f27bd8644e7837b17dbc876f92eec7
This diff is collapsed.
Click to expand it.
include/spm_config.h.in
+
3
−
0
View file @
815cbe50
...
...
@@ -47,6 +47,9 @@
/* Exploit the scotch version from the library compiling spm */
#cmakedefine HAVE_SCOTCH
/* LAPACKE */
#cmakedefine LAPACKE_WITH_LASCL
#if defined(HAVE_FALLTHROUGH)
#define spm_attr_fallthrough __attribute__((fallthrough))
#else
...
...
This diff is collapsed.
Click to expand it.
src/z_spm_matrixvector.c
+
23
−
0
View file @
815cbe50
...
...
@@ -222,6 +222,29 @@ __spm_zmatvec_ge_ijv( const __spm_zmatvec_t *args )
return
SPM_SUCCESS
;
}
#if !defined(LAPACKE_WITH_LASCL)
static
inline
void
__spm_zlascl
(
spm_complex64_t
alpha
,
spm_int_t
m
,
spm_int_t
n
,
spm_complex64_t
*
A
,
spm_int_t
lda
)
{
spm_int_t
i
,
j
;
for
(
j
=
0
;
j
<
n
;
j
++
)
{
for
(
i
=
0
;
i
<
m
;
i
++
,
A
++
)
{
*
A
*=
alpha
;
}
A
+=
m
-
lda
;
}
}
#define LAPACKE_zlascl_work( _dir_, _uplo_, _kl_, _ku_, _cfrom_, _cto_, _m_, _n_, _A_, _lda_ ) \
__spm_zlascl( (_cto_), (_m_), (_n_), (_A_), (_lda_) )
#endif
/**
*******************************************************************************
*
...
...
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