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
a39e03bc
"docs/git@gitlab.inria.fr:solverstack/chameleon.git" did not exist on "a1ede45e31c21d2dff537ab175a51fe5060dc93a"
Commit
a39e03bc
authored
8 years ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
Add geadd GPU kernel
parent
c3b46563
No related branches found
No related tags found
1 merge request
!39
CUDA geadd kernel
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cudablas/compute/cuda_zgeadd.c
+51
-0
51 additions, 0 deletions
cudablas/compute/cuda_zgeadd.c
with
51 additions
and
0 deletions
cudablas/compute/cuda_zgeadd.c
0 → 100644
+
51
−
0
View file @
a39e03bc
/**
*
* @copyright (c) 2009-2014 The University of Tennessee and The University
* of Tennessee Research Foundation.
* All rights reserved.
* @copyright (c) 2012-2016 Inria. All rights reserved.
* @copyright (c) 2012-2014 Bordeaux INP, CNRS (LaBRI UMR 5800), Inria, Univ. Bordeaux. All rights reserved.
*
**/
/**
*
* @file cuda_zgeadd.c
*
* MORSE cudablas kernel
* MORSE is a software package provided by Univ. of Tennessee,
* Univ. of California Berkeley and Univ. of Colorado Denver,
* and INRIA Bordeaux Sud-Ouest
*
* @author Florent Pruvost
* @date 2015-09-17
* @precisions normal z -> c d s
*
**/
#include
"cudablas/include/cudablas.h"
#include
"cudablas/include/cudablas_z.h"
#if !defined(CHAMELEON_USE_CUBLAS_V2)
#error "This file requires cublas api v2 support"
#endif
int
CUDA_zgeadd
(
MORSE_enum
transa
,
MORSE_enum
transb
,
int
m
,
int
n
,
int
k
,
cuDoubleComplex
*
alpha
,
const
cuDoubleComplex
*
A
,
int
lda
,
const
cuDoubleComplex
*
B
,
int
ldb
,
cuDoubleComplex
*
beta
,
cuDoubleComplex
*
C
,
int
ldc
,
CUBLAS_STREAM_PARAM
)
{
cublasZgeam
(
CUBLAS_HANDLE
morse_cublas_const
(
transa
),
morse_cublas_const
(
transb
),
m
,
n
,
k
,
CUBLAS_VALUE
(
alpha
),
A
,
lda
,
B
,
ldb
,
CUBLAS_VALUE
(
beta
),
C
,
ldc
);
assert
(
CUBLAS_STATUS_SUCCESS
==
cublasGetError
()
);
return
MORSE_SUCCESS
;
}
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