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
Admin message
GitLab upgrade completed. Current version is 17.8.2.
Show more breadcrumbs
solverstack
Chameleon
Commits
01075844
Commit
01075844
authored
3 weeks ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
hip: Fix half definition when using hip
parent
5245b134
No related branches found
Branches containing commit
No related tags found
1 merge request
!518
gitlab-ci-initial-cache.cmake: CMAKE_C_FLAGS must be set as a cache variable...
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
gpuhipblas/compute/hip_hgemm.c
+5
-5
5 additions, 5 deletions
gpuhipblas/compute/hip_hgemm.c
gpuhipblas/include/gpuhipblas.h
+5
-5
5 additions, 5 deletions
gpuhipblas/include/gpuhipblas.h
include/chameleon/types.h
+2
-0
2 additions, 0 deletions
include/chameleon/types.h
with
12 additions
and
10 deletions
gpuhipblas/compute/hip_hgemm.c
+
5
−
5
View file @
01075844
...
...
@@ -19,11 +19,11 @@
int
HIP_hgemm
(
cham_trans_t
transa
,
cham_trans_t
transb
,
int
m
,
int
n
,
int
k
,
const
CHAMELEON_Real16_t
*
alpha
,
const
CHAMELEON_Real16_t
*
A
,
int
lda
,
const
CHAMELEON_Real16_t
*
B
,
int
ldb
,
const
CHAMELEON_Real16_t
*
beta
,
CHAMELEON_Real16_t
*
C
,
int
ldc
,
const
hipblasHalf
*
alpha
,
const
hipblasHalf
*
A
,
int
lda
,
const
hipblasHalf
*
B
,
int
ldb
,
const
hipblasHalf
*
beta
,
hipblasHalf
*
C
,
int
ldc
,
hipblasHandle_t
handle
)
{
hipblasStatus_t
rc
;
...
...
This diff is collapsed.
Click to expand it.
gpuhipblas/include/gpuhipblas.h
+
5
−
5
View file @
01075844
...
...
@@ -62,11 +62,11 @@ BEGIN_C_DECLS
int
HIP_hgemm
(
cham_trans_t
transa
,
cham_trans_t
transb
,
int
m
,
int
n
,
int
k
,
const
CHAMELEON_Real16_t
*
alpha
,
const
CHAMELEON_Real16_t
*
A
,
int
lda
,
const
CHAMELEON_Real16_t
*
B
,
int
ldb
,
const
CHAMELEON_Real16_t
*
beta
,
CHAMELEON_Real16_t
*
C
,
int
ldc
,
const
hipblasHalf
*
alpha
,
const
hipblasHalf
*
A
,
int
lda
,
const
hipblasHalf
*
B
,
int
ldb
,
const
hipblasHalf
*
beta
,
hipblasHalf
*
C
,
int
ldc
,
hipblasHandle_t
handle
);
END_C_DECLS
...
...
This diff is collapsed.
Click to expand it.
include/chameleon/types.h
+
2
−
0
View file @
01075844
...
...
@@ -109,6 +109,8 @@ typedef int8_t cham_bool_t;
*/
#if defined(__cplusplus) && defined(CHAMELEON_USE_CUDA) && (CUDA_VERSION >= 7500)
typedef
__half
CHAMELEON_Real16_t
;
#elif defined(CHAMELEON_USE_HIP) && defined(__HIP__)
typedef
hipblasHalf
CHAMELEON_Real16_t
;
#else
/* use short for cuda older than 7.5 and non-cuda files
* corresponding routines would not work anyway since there is no half precision */
...
...
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