Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
hysop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
particle_methods
hysop
Commits
12b6b6f7
Commit
12b6b6f7
authored
8 years ago
by
Keck Jean-Baptiste
Browse files
Options
Downloads
Patches
Plain Diff
stretching debug
parent
8a85a3e1
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
hysop/codegen/kernels/tests/test_directional_stretching.py
+4
-4
4 additions, 4 deletions
hysop/codegen/kernels/tests/test_directional_stretching.py
with
4 additions
and
4 deletions
hysop/codegen/kernels/tests/test_directional_stretching.py
+
4
−
4
View file @
12b6b6f7
...
@@ -17,7 +17,7 @@ class TestDirectionalStretching(object):
...
@@ -17,7 +17,7 @@ class TestDirectionalStretching(object):
queue
=
cl
.
CommandQueue
(
typegen
.
context
)
queue
=
cl
.
CommandQueue
(
typegen
.
context
)
ctx
=
typegen
.
context
ctx
=
typegen
.
context
grid_size
=
np
.
asarray
([
2
56
,
256
,
256
])
grid_size
=
np
.
asarray
([
2
048
,
10
,
10
])
compute_grid_ghosts
=
np
.
asarray
([
3
*
4
,
0
,
0
])
compute_grid_ghosts
=
np
.
asarray
([
3
*
4
,
0
,
0
])
compute_grid_size
=
grid_size
+
2
*
compute_grid_ghosts
compute_grid_size
=
grid_size
+
2
*
compute_grid_ghosts
...
@@ -108,8 +108,8 @@ class TestDirectionalStretching(object):
...
@@ -108,8 +108,8 @@ class TestDirectionalStretching(object):
cls
.
host_buffers_gpu
=
host_buffers_gpu
cls
.
host_buffers_gpu
=
host_buffers_gpu
cls
.
device_buffers
=
device_buffers
cls
.
device_buffers
=
device_buffers
cls
.
local_work_size
=
np
.
asarray
([
30
,
1
,
1
])
cls
.
local_work_size
=
np
.
asarray
([
1024
,
1
,
1
])
cls
.
work_load
=
np
.
asarray
([
1
,
4
,
4
])
cls
.
work_load
=
np
.
asarray
([
1
,
1
,
1
])
cls
.
inv_dx
=
inv_dx
cls
.
inv_dx
=
inv_dx
cls
.
dt
=
dtype
(
0.5
)
cls
.
dt
=
dtype
(
0.5
)
...
@@ -400,7 +400,7 @@ class TestDirectionalStretching(object):
...
@@ -400,7 +400,7 @@ class TestDirectionalStretching(object):
for
(
name
,
host
,
dev
)
in
buffers
:
for
(
name
,
host
,
dev
)
in
buffers
:
(
l1
,
l2
,
linf
)
=
self
.
_distances
(
host
,
dev
,
view
)
(
l1
,
l2
,
linf
)
=
self
.
_distances
(
host
,
dev
,
view
)
print
'
\t
{} -> l1={} l2={} linf={}
'
.
format
(
name
,
l1
,
l2
,
linf
)
print
'
\t
{} -> l1={} l2={} linf={}
'
.
format
(
name
,
l1
,
l2
,
linf
)
if
l2
>
1e-
11
:
if
l2
>
1e-
8
:
err_buffers
.
append
(
name
)
err_buffers
.
append
(
name
)
good
=
False
good
=
False
if
not
good
:
if
not
good
:
...
...
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