HiRep 0.1
|
For a more efficient compilation we are using ninja build for compilation. Find detailed compilation instructions in the repository's README and user guide.
When recompiling with changed compilation flags, run
in the target directory to clean the code of artefacts, that are only compiled with different compilation flags.
When recompiling after making adjustments to the file structure, such as renaming, adding or removing a file, remove the build folder in the root.
Changing MkFlags.ini is necessary, because this tells ninja to regenerate the build folder from the new directory structure.
The CUDA library is a C++ library, while HiRep
is written in C. This means that when compiling for GPU, we need to cross-compile. Make sure that your code is setup correctly, by following these instructions
.c
, C++ CUDA source files always have the .cu
..h
, C++ CUDA header files always have the ending .hpp
..cu
-file or in a header file .hpp
in the same directory that is included in only one corresponding .cu
file with the line Include
, because kernels should not be visible globally. What should be visible are higher level functions that do or do not call kernels internally and that in turn can be called equally from C or C++ code.