Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NVidia_AMD_Bench
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Henning Fehrmann
NVidia_AMD_Bench
Commits
01429d6a
Commit
01429d6a
authored
4 years ago
by
Henning Fehrmann
Committed by
Henning Fehrmann
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
outsource parts which are also needed for FFTWs
parent
d3142d28
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
blas.c
+1
-68
1 addition, 68 deletions
blas.c
with
1 addition
and
68 deletions
blas.c
+
1
−
68
View file @
01429d6a
...
...
@@ -16,11 +16,11 @@
*/
#include
"hardware_settings.h"
#include
"profiler.h"
#include
<stdio.h>
#include
<stdlib.h>
#include
<math.h>
#include
<time.h>
#include
<omp.h>
#define __MALLOC(P, size) P = malloc(size); \
...
...
@@ -34,73 +34,6 @@ size_t m = 10000;
size_t
n
=
10000
;
size_t
k
=
10000
;
static
unsigned
long
x
=
123456789
,
y
=
362436069
,
z
=
521288629
;
unsigned
long
xorshf96
(
void
)
{
// NOT thread save
unsigned
long
t
;
x
^=
x
<<
16
;
x
^=
x
>>
5
;
x
^=
x
<<
1
;
t
=
x
;
x
=
y
;
y
=
z
;
z
=
t
^
x
^
y
;
return
z
;
}
struct
runtime
{
struct
timespec
start
;
struct
timespec
stop
;
char
tag
[
128
];
};
void
timer_start
(
struct
runtime
*
timer
,
char
tag
[
128
]
)
{
struct
timespec
start
;
sprintf
(
timer
->
tag
,
"%s"
,
tag
);
clock_gettime
(
CLOCK_REALTIME
,
&
start
);
timer
->
start
=
start
;
// printf("--------> start timer: %s\n", timer->tag);
}
double
timer_stop
(
struct
runtime
*
timer
)
{
struct
timespec
stop
;
clock_gettime
(
CLOCK_REALTIME
,
&
stop
);
timer
->
stop
=
stop
;
double
res
=
(
double
)
(
(
timer
->
stop
).
tv_sec
-
(
timer
->
start
).
tv_sec
)
*
1000
.
+
(
double
)
(
(
timer
->
stop
).
tv_nsec
-
(
timer
->
start
).
tv_nsec
)
/
1000000
.
;
// printf("--------> stop timer %s: %g ms\n", timer->tag, res );
return
res
;
}
void
multiplication
(
...
...
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