mpic++

Creating a library file in makefile and compiling after that

时间秒杀一切 提交于 2019-12-10 11:28:01
问题 My problem is fairly easy but I just don't know how to solve it. I know how to compile and library and link against it if I'm not using a make file because then I can just call ar separately and everything goes right. Anyway I'm using a petsc library and I'm using a makefile what they provided: CFLAGS = FFLAGS = CPPFLAGS = FPPFLAGS = LOCDIR = /home/user/.../.../ # Working folder EXAMPLESC = main.cpp class.cpp #.cpp file names here EXAMPLESF = #MANSEC = Mat I don't know what this is but it

Writing dependencies in makefile, with makefile

≡放荡痞女 提交于 2019-12-07 07:20:44
问题 Based on some SO questions -- and some further reference found --, I'm trying to build a makefile able to: find, given the directories in $(SRC) , the .cpp files to be compiled; compile the .cpp , producing .o objects; generate .so shared objects from each .o formerly compiled. What the make file is supposed to do to achieve that is: find, given the directories in $(SRC) , the .cpp files to be compiled; build the dependency list for each .cpp using -MM compiler's flag; annotate/add each

Creating a library file in makefile and compiling after that

别来无恙 提交于 2019-12-06 09:48:36
My problem is fairly easy but I just don't know how to solve it. I know how to compile and library and link against it if I'm not using a make file because then I can just call ar separately and everything goes right. Anyway I'm using a petsc library and I'm using a makefile what they provided: CFLAGS = FFLAGS = CPPFLAGS = FPPFLAGS = LOCDIR = /home/user/.../.../ # Working folder EXAMPLESC = main.cpp class.cpp #.cpp file names here EXAMPLESF = #MANSEC = Mat I don't know what this is but it seems to work without it. include ${PETSC_DIR}/conf/variables include ${PETSC_DIR}/conf/rules myProgram:

Writing dependencies in makefile, with makefile

大兔子大兔子 提交于 2019-12-05 10:39:09
Based on some SO questions -- and some further reference found --, I'm trying to build a makefile able to: find, given the directories in $(SRC) , the .cpp files to be compiled; compile the .cpp , producing .o objects; generate .so shared objects from each .o formerly compiled. What the make file is supposed to do to achieve that is: find, given the directories in $(SRC) , the .cpp files to be compiled; build the dependency list for each .cpp using -MM compiler's flag; annotate/add each dependency using $(eval ...) ; evaluate/solve each dependency found, producing both the .o and .so files.

How to send a set object in MPI_Send

不想你离开。 提交于 2019-11-28 11:35:34
I searched to send a set object and the closest I found was with vector (it's different and don't work with set). How can I send a set object in MPI_Send? (without using boost library) Anyone can put a simple example? Jonathan Dursi Whether you have to write a complex data structure to a file or over the network in MPI, the issues are the same; you have to extract the data into "Plain Old Data" (POD), save it, and then output it, and likewise be able to unpack the saved data into the same sort of structure. In general, this is called serialization. For any given structure you can always write

How to send a set object in MPI_Send

我与影子孤独终老i 提交于 2019-11-27 06:18:41
问题 I searched to send a set object and the closest I found was with vector (it's different and don't work with set). How can I send a set object in MPI_Send? (without using boost library) Anyone can put a simple example? 回答1: Whether you have to write a complex data structure to a file or over the network in MPI, the issues are the same; you have to extract the data into "Plain Old Data" (POD), save it, and then output it, and likewise be able to unpack the saved data into the same sort of