Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
HeteroFlow
THAPI
Commits
4de2d54c
Commit
4de2d54c
authored
Oct 23, 2020
by
Brice Videau
Browse files
Fixed programs scoping.
parent
e95527fd
Pipeline
#11700
canceled with stage
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
opencl/extract_enqueues.in
View file @
4de2d54c
...
...
@@ -45,7 +45,7 @@ def get_enqueues(it)
program
=
{}
program
[
:context
]
=
v
[
"context"
]
program
[
:type
]
=
:link
program
[
:programs
]
=
v
[
"input_programs_vals"
]
program
[
:programs
]
=
v
[
"input_programs_vals"
]
.
collect
{
|
prog
|
programs
[
prog
]
}
when
"lttng_ust_opencl_source:program_string"
,
"lttng_ust_opencl_source:program_il"
program
[
:source
]
=
v
[
"path"
]
when
"lttng_ust_opencl:clCreateProgramWithIL_
#{
STOP
}
"
,
"lttng_ust_opencl:clCreateProgramWithSource_
#{
STOP
}
"
,
"lttng_ust_opencl:clLinkProgram_
#{
STOP
}
"
...
...
@@ -106,7 +106,7 @@ def dump_enqueues(enqueues)
FileUtils
.
mkdir
(
kerdir
)
unless
Dir
.
exist?
(
kerdir
)
if
enqueue
[
:kernel
][
:program
][
:type
]
==
:link
enqueue
[
:kernel
][
:program
][
:programs
].
each
{
|
prog
|
FileUtils
.
cp
(
prog
rams
[
prog
]
[
:source
],
File
.
join
(
kerdir
,
"source"
))
FileUtils
.
cp
(
prog
[
:source
],
File
.
join
(
kerdir
,
"source"
))
}
else
FileUtils
.
cp
(
enqueue
[
:kernel
][
:program
][
:source
],
File
.
join
(
kerdir
,
"source"
))
...
...
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