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
ba151c5d
Commit
ba151c5d
authored
2 years ago
by
Alexandru Fikl
Committed by
Andreas Klöckner
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
remove pytools.Record in cl.cache
parent
f73aaf39
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
pyopencl/cache.py
+9
-5
9 additions, 5 deletions
pyopencl/cache.py
with
9 additions
and
5 deletions
pyopencl/cache.py
+
9
−
5
View file @
ba151c5d
...
...
@@ -23,11 +23,13 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
"""
import
pyopencl._cl
as
_cl
import
re
import
sys
import
os
from
pytools
import
Record
import
sys
from
dataclasses
import
dataclass
from
typing
import
List
,
Optional
,
Tuple
import
pyopencl._cl
as
_cl
import
logging
logger
=
logging
.
getLogger
(
__name__
)
...
...
@@ -330,8 +332,10 @@ def retrieve_from_cache(cache_dir, cache_key):
# {{{ top-level driver
class
_SourceInfo
(
Record
):
pass
@dataclass
(
frozen
=
True
)
class
_SourceInfo
:
dependencies
:
List
[
Tuple
[
str
,
...]]
log
:
Optional
[
str
]
def
_create_built_program_from_source_cached
(
ctx
,
src
,
options_bytes
,
...
...
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