Commit Graph

505 Commits

Author SHA1 Message Date
Miikka Vaisala
d5b6f3b48e Drafted read_mesh() to read existing binary data with at a specific step number. 2019-10-02 11:16:30 +08:00
Miikka Vaisala
cbbfd941f8 Merge branch 'master' into io_improvement_20190924 2019-10-02 10:47:51 +08:00
jpekkila
7d76250f70 Updated stencil_process.sps with the revised syntax for real literals 2019-10-01 21:20:28 +03:00
jpekkila
a0037d1a44 Modified the syntax of writing real-valued literals with the DSL. Casts are not needed any more: f.ex. 1.0 is implicitly cast to AcReal. The syntax is now more consistent: reals must be explicitly written as a.b, where a and b are some integers. IMPORTANT: Previously the shorthands a. and .b were allowed, not anymore. Using those shorthands will result in a compilation error 2019-10-01 21:14:33 +03:00
jpekkila
b4a6ddb074 Preprocessing writes the intermediate output to *.preprocessed files. This makes debugging various DSL syntax errors much easier since the line number in the error corresponds to the line numbers in these files. 2019-10-01 21:08:38 +03:00
jpekkila
d4eaee7d47 First pass of the Astaroth API specification complete 2019-10-01 18:27:37 +03:00
jpekkila
9a16c79ce6 Renamed all references to uniforms to f.ex. loadScalarConstant -> loadScalarUniform (for consistency with the DSL) 2019-10-01 17:12:20 +03:00
jpekkila
98631a4e40 API specification formatting 2019-10-01 16:33:42 +03:00
jpekkila
20c2069231 Made the utility library more consistent with the core library 2019-10-01 15:45:56 +03:00
jpekkila
19b16eecc8 Added an example for creating arbitrary projects, see acc/test_solver and src/exampleproject. Note: make sure that dt is calculated adequately and that all parameters are defined properly (see src/exampleproject/simulation.cc) 2019-10-01 15:33:26 +03:00
jpekkila
5a45fe11a8 Added the utility library itself (linked with target astaroth_utils) 2019-10-01 15:23:39 +03:00
jpekkila
adee6b0097 Added the new utility library as a build option 2019-10-01 15:22:25 +03:00
jpekkila
2c8c49ee24 Removed or updated some old .gitignore files 2019-09-24 17:50:41 +03:00
jpekkila
e4eea7db83 Added support for Volta GPUs 2019-09-24 17:19:45 +03:00
jpekkila
62fa95ca0d The issue on Puhti was that it was missing a static flex library which would have provided the function yywrap. Fixed by removing the static library dependency and adding option noyywrap to the lexer generator file 2019-09-24 17:19:19 +03:00
jpekkila
72af2cf31d acc is now built with cmake instead of the old build script. This was mainly done to fix compilation on Puhti where I had problems linking flex even though it is available. As an added bonus the code is now safer to build since all dependencies are now rigorously tracked by cmake and make, and f.ex. change in the compiler now forces also the whole library to be rebuilt (which is the behaviour we want) 2019-09-24 16:57:19 +03:00
jpekkila
a91da8388c Better code style in some of the acc source files 2019-09-24 15:50:20 +03:00
Miikka Vaisala
d7bd92ed1b Data read and written now with respect to actual AcReal properties. This will save space in the future. 2019-09-24 16:54:04 +08:00
Miikka Vaisala
d2e13d0139 Determine endianness. 2019-09-24 12:52:52 +08:00
Miikka Väisälä
88c3cdf0a5 README.md edited online with Bitbucket 2019-09-24 03:11:09 +00:00
Miikka Vaisala
fb34efdbb3 New running instructions.
After the merge, the old istructions are now deprecated. I still leave them here for making the README revision easier later.
2019-09-24 11:08:10 +08:00
jpekkila
cab64029df Merged in config_selection_as_runtime_option_20190918 (pull request #9)
Config selection as runtime option 20190918 (includes branch acc_cmake_integration_20190918)
2019-09-24 03:01:46 +00:00
jpekkila
bf34ec006a Merge branch 'master' into config_selection_as_runtime_option_20190918 2019-09-23 17:35:11 +03:00
jpekkila
4dfd4a1012 Changed from strncmp to strdup to work around warnings 2019-09-23 17:25:03 +03:00
Miikka Vaisala
cccc11798a Better mesh_info.list 2019-09-23 17:53:19 +08:00
Miikka Vaisala
5cc2d613be Changed realpath to readlink -f for better combatibility in different systems. 2019-09-23 15:35:09 +08:00
jpekkila
c85e0597c5 Merge branch 'master' of https://bitbucket.org/jpekkila/astaroth 2019-09-19 17:55:12 +03:00
jpekkila
b9bc0899c7 Replaced a .png with .svg 2019-09-19 17:55:00 +03:00
jpekkila
638b4e500c Fixed an image link in the specs 2019-09-19 17:54:25 +03:00
jpekkila
6232176fa7 More about the DSL 2019-09-19 17:49:13 +03:00
jpekkila
2c118d15ea Started the DSL section of the API and DSL specification 2019-09-19 16:56:50 +03:00
jpekkila
750996c11d Added an image of the stencil pipeline and stages 2019-09-19 16:54:43 +03:00
jpekkila
1c14ec6e16 Updated Bitbucket pipelines 2019-09-19 07:41:48 +00:00
jpekkila
24f46324e0 Deprecated the old style of selecting a config file (was a compile-time parameter). The config file is now a runtime parameter and can be changed without recompilation. Usage: ./ac_run -s <path/to/config/file/relative/to/ac_run/path>. config/astaroth.conf is selected by default if the custom path is not supplied to ac_run. 2019-09-18 19:22:15 +03:00
jpekkila
3bb6ca1712 The Astaroth Code Compiler (acc) is now built with cmake. Additionally, make is now used to generate the CUDA headers from DSL sources. The headers are also properly regenerated whenever a DSL file has been changed. With this commit, the DSL is now seamlessly integrated to the library and we no longer need complicated scripts to figure out the correct files. The current workflow for using custom DSL sources is to pass the DSL module directory to cmake, f.ex. cmake -DDSL_MODULE_DIR=/acc/mhd_solver. Note that the path must be absolute or then given relative to the CMakeLists.txt directory. f.ex cd build && cmake -DDSL_MODULE_DIR=../acc/mhd_solver does not work. CMake then takes all DSL files in that directory and handles the rest. 2019-09-18 17:28:29 +03:00
jpekkila
bce3e4de03 Made warnings about unused device functions go away 2019-09-18 16:58:04 +03:00
jpekkila
eefd60983a 3rd party dependencies do not have to be fetched manually any more, cmake make will do that automatically if needed 2019-09-18 09:06:03 +03:00
Miikka Väisälä
4b6ce26f8a Merged in sink_20190723 (pull request #8)
Sink 20190723
2019-09-17 15:14:34 +00:00
jpekkila
d2057b8f5a Added a suggestion for writing out the configuration in simulation.cc 2019-09-17 18:12:43 +03:00
jpekkila
9b0be40b98 Auto-formatted 2019-09-17 17:36:28 +03:00
Miikka Vaisala
af254257a2 Back to defualts in renderer.cc 2019-09-16 12:38:17 +08:00
Miikka Vaisala
297b788ce7 Small corrections to keep the defaults in place. 2019-09-16 12:33:56 +08:00
Miikka Vaisala
4d7cb0184c Corrected type definition problems. 2019-09-16 12:12:10 +08:00
Miikka Vaisala
f5733e5144 Turnin LSINK off by default to prepare for merge to master. 2019-09-16 11:15:44 +08:00
Miikka Vaisala
42f92c7d49 Merge branch 'master' into sink_20190723 2019-09-16 10:57:15 +08:00
Miikka Väisälä
55e4357d77 compile_acc.sh edited online with Bitbucket. Corrections to --help. 2019-09-16 02:16:15 +00:00
jpekkila
ef292c5e90 Merge branch 'master' of https://bitbucket.org/jpekkila/astaroth 2019-09-12 20:11:27 +03:00
jpekkila
4ce51ea60e Now the generated CUDA header files are completely local (placed in the build directory) instead of depending on some predefined directory structure. This allows users to swap between build directories without having to recompile. 2019-09-12 20:11:21 +03:00
jpekkila
e351902dc0 Fixed a failed fix. 2019-09-12 16:41:11 +00:00
jpekkila
bfd00f12d1 API_specification_and_user_manual.md edited online with Bitbucket. Syntax fixes. 2019-09-12 16:39:26 +00:00