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
9513cb95
Commit
9513cb95
authored
8 years ago
by
Jean-Baptiste Keck
Browse files
Options
Downloads
Patches
Plain Diff
order ok
parent
6f00650b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+3
-2
3 additions, 2 deletions
CMakeLists.txt
hysop/gpu/gpu_stretching.py
+5
-4
5 additions, 4 deletions
hysop/gpu/gpu_stretching.py
hysop/gpu/tools.py
+2
-0
2 additions, 0 deletions
hysop/gpu/tools.py
with
10 additions
and
6 deletions
CMakeLists.txt
+
3
−
2
View file @
9513cb95
...
@@ -179,7 +179,7 @@ endif()
...
@@ -179,7 +179,7 @@ endif()
# --- FFTW ---
# --- FFTW ---
if
(
WITH_FFTW
)
if
(
WITH_FFTW
)
set
(
FIND_FFTW_VERBOSE
OFF
)
set
(
FIND_FFTW_VERBOSE
VERBOSE_MODE
)
set
(
FIND_FFTW_DEBUG OFF
)
set
(
FIND_FFTW_DEBUG OFF
)
compile_with
(
FFTW
compile_with
(
FFTW
REQUIRED COMPONENTS Fftw3d Fftw3f Fftw3d-mpi Fftw3f-mpi
REQUIRED COMPONENTS Fftw3d Fftw3f Fftw3d-mpi Fftw3f-mpi
...
@@ -517,7 +517,8 @@ if(VERBOSE_MODE)
...
@@ -517,7 +517,8 @@ if(VERBOSE_MODE)
message
(
STATUS
" Project uses Scales :
${
WITH_SCALES
}
"
)
message
(
STATUS
" Project uses Scales :
${
WITH_SCALES
}
"
)
message
(
STATUS
" Project uses FFTW :
${
WITH_FFTW
}
"
)
message
(
STATUS
" Project uses FFTW :
${
WITH_FFTW
}
"
)
message
(
STATUS
" Project uses GPU :
${
WITH_GPU
}
"
)
message
(
STATUS
" Project uses GPU :
${
WITH_GPU
}
"
)
message
(
STATUS
"
${
PROJECT_NAME
}
debug mode :
${
DEBUG
}
"
)
message
(
STATUS
"
${
PROJECT_NAME
}
profile mode :
${
PROFILE
}
"
)
message
(
STATUS
"
${
PROJECT_NAME
}
debug mode :
${
DEBUG
}
"
)
message
(
STATUS
" Enable -OO run? :
${
OPTIM
}
"
)
message
(
STATUS
" Enable -OO run? :
${
OPTIM
}
"
)
message
(
STATUS
"====================== ======= ======================"
)
message
(
STATUS
"====================== ======= ======================"
)
message
(
STATUS
" "
)
message
(
STATUS
" "
)
...
...
This diff is collapsed.
Click to expand it.
hysop/gpu/gpu_stretching.py
+
5
−
4
View file @
9513cb95
...
@@ -54,6 +54,9 @@ class GPUStretching(DiscreteOperator, GPUOperator):
...
@@ -54,6 +54,9 @@ class GPUStretching(DiscreteOperator, GPUOperator):
self
.
vorticity
=
vorticity
self
.
vorticity
=
vorticity
self
.
velocity
=
velocity
self
.
velocity
=
velocity
# order of spatial scheme
self
.
order
=
2
if
self
.
method
[
SpaceDiscretisation
]
is
FDC2
else
4
# Worksize handling
# Worksize handling
#TODO
#TODO
self
.
_cl_work_size
=
0
self
.
_cl_work_size
=
0
...
@@ -128,7 +131,6 @@ class GPUStretching(DiscreteOperator, GPUOperator):
...
@@ -128,7 +131,6 @@ class GPUStretching(DiscreteOperator, GPUOperator):
hostbuf
=
mesh_info
)
hostbuf
=
mesh_info
)
self
.
mesh_info_buffer
=
mesh_info_buffer
self
.
mesh_info_buffer
=
mesh_info_buffer
kernels
=
{}
kernels
=
{}
kernels
[
'
stretching
'
]
=
KernelLauncher
(
prg
.
all_kernels
()[
0
],
self
.
cl_env
.
queue
,
kernels
[
'
stretching
'
]
=
KernelLauncher
(
prg
.
all_kernels
()[
0
],
self
.
cl_env
.
queue
,
gwi
,
lwi
)
gwi
,
lwi
)
...
@@ -142,7 +144,7 @@ class GPUStretching(DiscreteOperator, GPUOperator):
...
@@ -142,7 +144,7 @@ class GPUStretching(DiscreteOperator, GPUOperator):
context
=
cl_env
.
ctx
context
=
cl_env
.
ctx
work_dim
=
self
.
dim
work_dim
=
self
.
dim
symbolic_mode
=
True
symbolic_mode
=
True
order
=
2
order
=
self
.
order
known_vars
=
{
'
local_size
'
:
lwi
}
known_vars
=
{
'
local_size
'
:
lwi
}
codegen
=
CachedStretchingKernel
(
typegen
=
typegen
,
codegen
=
CachedStretchingKernel
(
typegen
=
typegen
,
...
@@ -176,8 +178,7 @@ class GPUStretching(DiscreteOperator, GPUOperator):
...
@@ -176,8 +178,7 @@ class GPUStretching(DiscreteOperator, GPUOperator):
stretching_evt
=
self
.
kernels
[
'
stretching
'
](
*
kernel_args
,
wait_for
=
input_events
)
stretching_evt
=
self
.
kernels
[
'
stretching
'
](
*
kernel_args
,
wait_for
=
input_events
)
if
to_host
:
if
to_host
:
for
field
in
self
.
variables
:
self
.
vorticity
.
toHost
()
field
.
toHost
()
def
apply
(
self
,
simulation
):
def
apply
(
self
,
simulation
):
self
.
_compute
(
simulation
)
self
.
_compute
(
simulation
)
...
...
This diff is collapsed.
Click to expand it.
hysop/gpu/tools.py
+
2
−
0
View file @
9513cb95
...
@@ -73,6 +73,8 @@ class OpenCLEnvironment(object):
...
@@ -73,6 +73,8 @@ class OpenCLEnvironment(object):
# Floating point precision
# Floating point precision
from
hysop.codegen.base.types
import
OpenClTypeGen
from
hysop.codegen.base.types
import
OpenClTypeGen
print
'
__VERBOSE__
'
,
__VERBOSE__
print
'
__DEBUG__
'
,
__DEBUG__
if
__VERBOSE__
or
__DEBUG__
:
if
__VERBOSE__
or
__DEBUG__
:
float_dump_mode
=
'
dec
'
float_dump_mode
=
'
dec
'
else
:
else
:
...
...
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