Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
loopy
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
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
Ben Sepanski
loopy
Commits
bf722a8f
Commit
bf722a8f
authored
13 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Only warn about L1/LMEM overruns on non-genuine-lmem architectures.
parent
fb42deff
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
loopy/kernel.py
+10
-2
10 additions, 2 deletions
loopy/kernel.py
with
10 additions
and
2 deletions
loopy/kernel.py
+
10
−
2
View file @
bf722a8f
...
...
@@ -4,8 +4,9 @@ from __future__ import division
import
numpy
as
np
from
pytools
import
Record
,
memoize_method
from
pymbolic.mapper.dependency
import
DependencyMapper
import
pyopencl
as
cl
...
...
@@ -466,7 +467,14 @@ class LoopKernel(Record):
from
pyopencl.characterize
import
usable_local_mem_size
if
self
.
local_mem_use
()
>
usable_local_mem_size
(
self
.
device
):
return
"
using too much local memory
"
if
self
.
device
.
local_mem_type
==
cl
.
device_local_mem_type
.
LOCAL
:
return
"
using too much local memory
"
else
:
from
warnings
import
warn
from
loopy
import
LoopyAdvisory
warn
(
"
using more local memory than available--
"
"
possibly OK due to cache nature
"
,
LoopyAdvisory
)
return
None
...
...
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