Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QuickSched
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
SWIFT
QuickSched
Commits
c35ba799
Commit
c35ba799
authored
11 years ago
by
Pedro Gonnet
Browse files
Options
Downloads
Patches
Plain Diff
use more specific type names.
parent
8bfaef59
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/test.c
+6
-2
6 additions, 2 deletions
examples/test.c
examples/test_bh.c
+2
-1
2 additions, 1 deletion
examples/test_bh.c
examples/test_qr.c
+4
-3
4 additions, 3 deletions
examples/test_qr.c
with
12 additions
and
6 deletions
examples/test.c
+
6
−
2
View file @
c35ba799
...
...
@@ -61,7 +61,9 @@ void matmul ( int m , int n , int k , double *a , int lda , double *b , int ldb
void
test2
(
int
m
,
int
n
,
int
k
,
int
nr_threads
)
{
int
i
,
j
,
kk
,
qid
,
data
[
3
],
*
d
,
tid
,
rid
;
int
i
,
j
,
kk
,
qid
,
data
[
3
],
*
d
;
qsched_task_t
tid
;
qsched_res_t
rid
;
struct
qsched
s
;
struct
task
*
t
;
double
*
a
,
*
b
,
*
c
,
*
res
,
err
=
0
.
0
,
irm
=
1
.
0
/
RAND_MAX
;
...
...
@@ -176,7 +178,9 @@ void test2 ( int m , int n , int k , int nr_threads ) {
void
test1
(
int
m
,
int
n
,
int
k
,
int
nr_threads
)
{
int
i
,
j
,
qid
,
data
[
2
],
*
d
,
tid
,
rid
;
int
i
,
j
,
qid
,
data
[
2
],
*
d
;
qsched_task_t
tid
;
qsched_res_t
rid
;
struct
qsched
s
;
struct
task
*
t
;
double
*
a
,
*
b
,
*
c
,
*
res
,
err
=
0
.
0
,
irm
=
1
.
0
/
RAND_MAX
;
...
...
This diff is collapsed.
Click to expand it.
examples/test_bh.c
+
2
−
1
View file @
c35ba799
...
...
@@ -485,7 +485,8 @@ void iact_self ( struct cell *c ) {
void
create_tasks
(
struct
qsched
*
s
,
struct
cell
*
ci
,
struct
cell
*
cj
)
{
int
j
,
k
,
tid
;
int
j
,
k
;
qsched_task_t
tid
;
struct
cell
*
data
[
2
];
double
dx
,
r2
;
...
...
This diff is collapsed.
Click to expand it.
examples/test_qr.c
+
4
−
3
View file @
c35ba799
...
...
@@ -397,7 +397,8 @@ void test_qr ( int m , int n , int nr_threads ) {
int
k
,
j
,
i
;
double
*
A
,
*
A_orig
,
*
tau
;
struct
qsched
s
;
int
*
tid
,
*
rid
,
tid_new
;
qsched_task_t
*
tid
,
tid_new
;
qsched_res_t
*
rid
;
int
data
[
3
];
enum
task_types
{
task_DGEQRF
,
task_DLARFT
,
task_DTSQRF
,
task_DSSRFT
};
...
...
@@ -425,8 +426,8 @@ void test_qr ( int m , int n , int nr_threads ) {
qsched_init
(
&
s
,
nr_threads
,
m
*
n
);
/* Allocate and init the task ID and resource ID matrix. */
if
(
(
tid
=
(
in
t
*
)
malloc
(
sizeof
(
in
t
)
*
m
*
n
)
)
==
NULL
||
(
rid
=
(
in
t
*
)
malloc
(
sizeof
(
in
t
)
*
m
*
n
)
)
==
NULL
)
if
(
(
tid
=
(
qsched_task_
t
*
)
malloc
(
sizeof
(
qsched_task_
t
)
*
m
*
n
)
)
==
NULL
||
(
rid
=
(
qsched_res_
t
*
)
malloc
(
sizeof
(
qsched_res_
t
)
*
m
*
n
)
)
==
NULL
)
error
(
"Failed to allocate tid/rid matrix."
);
for
(
k
=
0
;
k
<
m
*
n
;
k
++
)
{
tid
[
k
]
=
-
1
;
...
...
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