jpekkila
|
0bda016e17
|
Reviewed the Astaroth interface. Now there's a clear distinction between synchronous and asynchronous functions. For basic usage, we provide a set of functions that are always safe to call (acIntegrate, acLoad, etc), but because of this, must be quite restricted in the sense that f.ex. the whole mesh must be loaded at once and computations cannot be executed concurrently on multiple GPUs. For more advanced users we provide asynchronous functions (such as acLoadWithOffset). Since we cannot know how the asynchronous functions are called (for example, when the integration step has been fully completed and the halos of neighboring subgrids can be safely communicated between GPUs), the responsibility of synchronization must be left to the user. In the existing implementations we currently use only the basic "safe" set of functions (except in renderer.cc), so the existing functionality has not been changed with these latests commits. Autotests also pass.
|
2019-07-09 18:42:00 +03:00 |
|
jpekkila
|
10a98b01a9
|
Experimental change: now the integration function is automatically optimized during acInit
|
2019-07-09 14:46:24 +03:00 |
|
jpekkila
|
0884c4bf38
|
Moved the definition of acForcingVec to host_forcing.cc since it depends on user parameters that may not be defined in all projects
|
2019-07-04 15:28:18 +03:00 |
|
jpekkila
|
7abb959828
|
Overhaul to the user-defined parameters done: All logical switches, parameters and vertex buffer handles are now defined in a single header file (the default location is acc/mhd_solver/stencil_defines.h). This header is used when preprocessing the DSL sources and is linked to the include/ directory when calling scripts/compile_acc.sh. astaroth.h is now used for configuring internal stuff only and should not be modified by users
|
2019-07-03 19:01:16 +03:00 |
|
jpekkila
|
acc53e1c2b
|
Merged master to acc_parameter_overhaul
|
2019-07-03 17:37:37 +03:00 |
|
jpekkila
|
08e9a32cb1
|
Added a comment about acForcingVec
|
2019-07-03 16:37:16 +03:00 |
|
jpekkila
|
d4d2680f40
|
Added a new generic function to the interface (astaroth.h) for loading arbitrary device constants. Also (unintended) autoformatting.
|
2019-07-03 16:19:25 +03:00 |
|
Miikka Vaisala
|
334ff868d9
|
Forcing disabled from autotest and from defaults.
It is not suitable function of the autotest tool. If there in really a
mandatory need to add it. I will need special help from Johannes.
|
2019-07-02 18:46:04 +08:00 |
|
Miikka Vaisala
|
03689709df
|
Merge branch 'master' into forcing
|
2019-07-02 16:43:10 +08:00 |
|
Miikka Vaisala
|
d0eb308f17
|
Better interface to forcing.
|
2019-07-02 16:35:14 +08:00 |
|
jpekkila
|
75f74526f4
|
Fixed incorrect logic with ifdefs: LMAGNETIC etc are toggle switches and are always defined
|
2019-07-01 18:43:04 +03:00 |
|
jpekkila
|
b8869bb848
|
Linked the defines used by the DSL and astaroth.h. Now f.ex. LENTROPY has to be set only once in acc/mhd_solver/stencil_defines.h and it is propagated throughout the whole project. The name for stencil_defines.h is not final and may change if I come up with a better name. In any case, there is now a standard header associated with each DSL solver where the user can set defines, and declare arrays (VTXBUF_LNRHO) and device constants (uniforms).
|
2019-07-01 18:37:56 +03:00 |
|
jpekkila
|
d9be66f65f
|
NOTE: Renamed LINDUCTION to LMAGNETIC throughout the project.
|
2019-07-01 13:40:24 +03:00 |
|
Miikka Vaisala
|
9f0be0d9ff
|
Solved the forcing function boundary problem.
|
2019-07-01 11:06:42 +08:00 |
|
jpekkila
|
b694702cf8
|
Removed an old comment
|
2019-06-27 17:11:21 +03:00 |
|
jpekkila
|
30c21ff420
|
Formatting: defines stay indented if clang-format is turned off temporarily
|
2019-06-27 13:31:50 +03:00 |
|
jpekkila
|
8ca09668c1
|
Added an advance notice about LINDUCTION to be renamed to LMAGNETIC in the near future throughout the project. LMAGNETIC would be better name since he define is used to enable the magnetic field.
|
2019-06-27 13:28:52 +03:00 |
|
jpekkila
|
fc96283c37
|
Reordered logical flags in a more logical order, density -> hydro -> induction -> entropy -> others
|
2019-06-27 13:22:14 +03:00 |
|
jpekkila
|
75fb756ad4
|
Autoformatted with clang-format. Clang-format does not support indented defines as far as I know, so this will have to do. The alternative would be not to use autoformatting at all (or some other tool).
|
2019-06-27 13:16:41 +03:00 |
|
Miikka Vaisala
|
d30b866a21
|
Merge branch 'master' into forcing
Now I need to test what works...
Conflicts:
acc/mhd_solver/stencil_process.sps
|
2019-06-27 11:22:31 +08:00 |
|
jpekkila
|
65c8a39cb9
|
Removed old comments and renamed USER_PROVIDED to USER_PROVIDED_DEFINES to be more explicit
|
2019-06-26 18:56:40 +03:00 |
|
jpekkila
|
cda17c9b08
|
VERBOSE_PRINTING flag is now globally used in the whole program and should be used to suppress development/debugging-related printing. Also added comments to the new interface function acCheckDeviceAvailability and made it free from side effects.
|
2019-06-26 18:50:15 +03:00 |
|
Matthias Rheinhardt
|
0bc8b7e827
|
MR: VTXBUF_DENSITY -> VTXBUF_LNRHO, minor
|
2019-06-26 17:14:24 +03:00 |
|
Matthias Rheinhardt
|
57a39fd848
|
MR: USER_PROVIDED
|
2019-06-26 17:10:51 +03:00 |
|
Miikka Vaisala
|
be0e46c814
|
Can move forcing vector information now from the host to device.
next step in to generate random waves in the CPU with a chosen degree of helicity etc.
|
2019-06-26 17:41:39 +08:00 |
|
jpekkila
|
2310186c71
|
Added a skeleton function for updating an arbitrary block inside the computational domain instead of the whole mesh
|
2019-06-19 19:43:46 +03:00 |
|
jpekkila
|
f3cbc4984c
|
Enabled toy forcing by default for testing purposes. Note that there are two LFORCING switches at the moment: one in astaroth.h and one in acc/mhd_solver/stencil_process.sps. The switches are not linked and the tests fail or simulations generate unexpected results if both switches are not set to the same value. This will be fixed in the near future.
|
2019-06-19 16:14:46 +03:00 |
|
jpekkila
|
8864266042
|
Autoformatted all CUDA/C/C++ code
|
2019-06-18 16:42:56 +03:00 |
|
jpekkila
|
0e48766a68
|
Added Astaroth 2.0
|
2019-06-14 14:19:07 +03:00 |
|