Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyopencl
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
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
Andreas Klöckner
pyopencl
Commits
97f71521
Commit
97f71521
authored
12 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Fix assumption that programs get build on devices in input order. (reported by Tom Zielinski)
parent
0e5a239f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pyopencl/cache.py
+5
-4
5 additions, 4 deletions
pyopencl/cache.py
with
5 additions
and
4 deletions
pyopencl/cache.py
+
5
−
4
View file @
97f71521
...
...
@@ -387,10 +387,11 @@ def _create_built_program_from_source_cached(ctx, src, options, devices, cache_d
prg_bins
=
prg
.
get_info
(
_cl
.
program_info
.
BINARIES
)
prg_logs
=
prg
.
_get_build_logs
()
for
i
,
dest_index
in
enumerate
(
to_be_built_indices
):
assert
prg_devs
[
i
]
==
devices
[
dest_index
]
binaries
[
dest_index
]
=
prg_bins
[
i
]
_
,
logs
[
dest_index
]
=
prg_logs
[
i
]
for
dest_index
in
to_be_built_indices
:
dev
=
devices
[
dest_index
]
src_index
=
prg_devs
.
index
(
dev
)
binaries
[
dest_index
]
=
prg_bins
[
src_index
]
_
,
logs
[
dest_index
]
=
prg_logs
[
src_index
]
if
len
(
to_be_built_indices
)
==
len
(
devices
):
# Important special case: if code for all devices was built,
...
...
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