Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
FastMoE
Commits
9d0f67d6
Unverified
Commit
9d0f67d6
authored
Sep 30, 2021
by
hclearner
Committed by
GitHub
Sep 30, 2021
Browse files
Update cublas_wrapper.h
parent
43eabe75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cuda/utils/cublas_wrapper.h
cuda/utils/cublas_wrapper.h
+2
-2
No files found.
cuda/utils/cublas_wrapper.h
View file @
9d0f67d6
...
@@ -77,7 +77,7 @@ inline cublasStatus_t cublasXgemm(cublasHandle_t handle,
...
@@ -77,7 +77,7 @@ inline cublasStatus_t cublasXgemm(cublasHandle_t handle,
const
__half
*
B
,
int
ldb
,
const
__half
*
B
,
int
ldb
,
const
__half
*
beta
,
const
__half
*
beta
,
__half
*
C
,
int
ldc
)
{
__half
*
C
,
int
ldc
)
{
#ifdef MOE_HIP
_DIFF
#ifdef
F
MOE_
USE_
HIP
return
rocblas_hgemm
(
handle
,
transa
,
transb
,
m
,
n
,
k
,
(
const
rocblas_half
*
)
alpha
,
(
const
rocblas_half
*
)
A
,
lda
,
(
const
rocblas_half
*
)
B
,
ldb
,
(
const
rocblas_half
*
)
beta
,
(
rocblas_half
*
)
C
,
ldc
);
return
rocblas_hgemm
(
handle
,
transa
,
transb
,
m
,
n
,
k
,
(
const
rocblas_half
*
)
alpha
,
(
const
rocblas_half
*
)
A
,
lda
,
(
const
rocblas_half
*
)
B
,
ldb
,
(
const
rocblas_half
*
)
beta
,
(
rocblas_half
*
)
C
,
ldc
);
#else
#else
return
cublasHgemm
(
handle
,
transa
,
transb
,
m
,
n
,
k
,
alpha
,
A
,
lda
,
B
,
ldb
,
beta
,
C
,
ldc
);
return
cublasHgemm
(
handle
,
transa
,
transb
,
m
,
n
,
k
,
alpha
,
A
,
lda
,
B
,
ldb
,
beta
,
C
,
ldc
);
...
@@ -92,7 +92,7 @@ inline cublasStatus_t cublasXgemm(cublasHandle_t handle,
...
@@ -92,7 +92,7 @@ inline cublasStatus_t cublasXgemm(cublasHandle_t handle,
const
c10
::
Half
*
B
,
int
ldb
,
const
c10
::
Half
*
B
,
int
ldb
,
const
c10
::
Half
*
beta
,
const
c10
::
Half
*
beta
,
c10
::
Half
*
C
,
int
ldc
)
{
c10
::
Half
*
C
,
int
ldc
)
{
#ifdef MOE_HIP
_DIFF
#ifdef
F
MOE_
USE_
HIP
return
rocblas_hgemm
(
handle
,
transa
,
transb
,
m
,
n
,
k
,
return
rocblas_hgemm
(
handle
,
transa
,
transb
,
m
,
n
,
k
,
(
const
rocblas_half
*
)
alpha
,
(
const
rocblas_half
*
)
alpha
,
(
const
rocblas_half
*
)
A
,
lda
,
(
const
rocblas_half
*
)
A
,
lda
,
...
...
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