Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hpvm-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
llvm
hpvm-release
Commits
f84a553e
Commit
f84a553e
authored
5 years ago
by
Akash Kothari
Browse files
Options
Downloads
Patches
Plain Diff
Fix the kernel function in VISC version of Sgemm benchmark
parent
4a82524a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hpvm/test/parboil/benchmarks/sgemm/src/visc/kernel.cl
+3
-1
3 additions, 1 deletion
hpvm/test/parboil/benchmarks/sgemm/src/visc/kernel.cl
with
3 additions
and
1 deletion
hpvm/test/parboil/benchmarks/sgemm/src/visc/kernel.cl
+
3
−
1
View file @
f84a553e
...
@@ -10,7 +10,8 @@
...
@@ -10,7 +10,8 @@
*
Kernel
of
dense
matrix-matrix
multiplication
kernel.
*
Kernel
of
dense
matrix-matrix
multiplication
kernel.
*/
*/
__kernel
void
mysgemmNT
(
__global
const
float
*A,
int
lda,
__global
const
float
*B,
int
ldb,
__global
float*
C,
int
ldc,
int
k,
float
alpha,
float
beta
)
__kernel
void
mysgemmNT
(
__global
const
float*
A,
long
bytes_A,
int
lda,
__global
const
float*
B,
long
bytes_B,
int
ldb,
__global
float*
C,
long
bytes_C,
int
ldc,
int
k,
float
alpha,
float
beta
)
{
{
float
c
=
0.0f
;
float
c
=
0.0f
;
int
m
=
get_global_id
(
0
)
;
int
m
=
get_global_id
(
0
)
;
...
@@ -23,3 +24,4 @@ __kernel void mysgemmNT( __global const float *A, int lda, __global const float
...
@@ -23,3 +24,4 @@ __kernel void mysgemmNT( __global const float *A, int lda, __global const float
}
}
C[m+n*ldc]
=
C[m+n*ldc]
*
beta
+
alpha
*
c
;
C[m+n*ldc]
=
C[m+n*ldc]
*
beta
+
alpha
*
c
;
}
}
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