Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
pystencils
Commits
c7b564be
Commit
c7b564be
authored
3 months ago
by
Richard Angersbach
Browse files
Options
Downloads
Patches
Plain Diff
Fix CUDARuntimeError import
parent
ad292c2b
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!438
Reduction Support
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/kernelcreation/test_reduction.py
+1
-1
1 addition, 1 deletion
tests/kernelcreation/test_reduction.py
with
1 addition
and
1 deletion
tests/kernelcreation/test_reduction.py
+
1
−
1
View file @
c7b564be
...
@@ -2,7 +2,6 @@ import pytest
...
@@ -2,7 +2,6 @@ import pytest
import
numpy
as
np
import
numpy
as
np
import
pystencils
as
ps
import
pystencils
as
ps
from
cupy_backends.cuda.api.runtime
import
CUDARuntimeError
from
pystencils.sympyextensions
import
reduction_assignment_from_str
from
pystencils.sympyextensions
import
reduction_assignment_from_str
INIT_W
=
5
INIT_W
=
5
...
@@ -51,6 +50,7 @@ def test_reduction_cpu(instruction_set, dtype, op):
...
@@ -51,6 +50,7 @@ def test_reduction_cpu(instruction_set, dtype, op):
def
test_reduction_gpu
(
dtype
,
op
):
def
test_reduction_gpu
(
dtype
,
op
):
try
:
try
:
import
cupy
as
cp
import
cupy
as
cp
from
cupy_backends.cuda.api.runtime
import
CUDARuntimeError
device_count
=
range
(
cp
.
cuda
.
runtime
.
getDeviceCount
())
device_count
=
range
(
cp
.
cuda
.
runtime
.
getDeviceCount
())
print
(
f
"
Found
{
device_count
}
GPUs
"
)
print
(
f
"
Found
{
device_count
}
GPUs
"
)
...
...
This diff is collapsed.
Click to expand it.
Frederik Hennig
@da15siwa
mentioned in commit
4e688b86
·
2 weeks ago
mentioned in commit
4e688b86
mentioned in commit 4e688b867339c90a6fba3ad12c383d1e59211ed9
Toggle commit list
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