madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/0000755000175000017500000000000013717002132016623 5ustar mbambamadness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/README_TESSE.md0000644000175000017500000000701113717002132021044 0ustar mbamba# Compiling TESSE * **Setup**: Create a directory for the entire project and store its location into an environment variable for convenience. Create an instal directory for all the TESSE-related software. We will configure them accordingly, to minimize the impact on the different standard path. First thing, we will add the binary part of the install directory to our PATH, to get first hand access to the software. In case you compile everything as DSO, you might also need to update the LD_LIBRARY_PATH. ```shell export TESSE_DIR=*my development directory* export PATH=${PATH}:${TESSE_DIR}/install/bin ``` * **Compile PaRSEC**: * Obtain the latest version of the PaRSEC source directly from the main bitbucket repo. ```shell git clone git@bitbucket.org:icldistcomp/parsec.git ``` * I suggest to keep the sources clean and use a VPATH compilation, but you are not required to do so. In case you choose to follow my advice: ```shell cd parsec mkdir build cd build ``` * Configuring PaRSEC should go smoothly. In the context of TESSE, it is necessary to produce shared libraries and to force the installation of the PaRSEC development headers. As a hint, if you want a debug build add ```-DCMAKE_BUILD_TYPE=Debug`` before the ```../```. ```shell cmake -G 'Unix Makefiles' -DBUILD_SHARED_LIBS=ON —DDAGUE_WITH_DEVEL_HEADERS=ON -DHWLOC_DIR= -DDAGUE_DIST_WITH_MPI=ON -DDAGUE_GPU_WITH_CUDA=OFF -DCMAKE_INSTALL_PREFIX:PATH=${TESSE_DIR}/install -DBUILD_DPLASMA=OFF ../ ``` PaRSEC will complain about missing BLAS libraries, but for the purpose of TESSE we don’t need them. Take a careful look at the output, to make sure the important pieces are indeed correctly found. Look for HWLOC and MPI at a minimum, CUDA if you need GPU support. It is also important to have support for atomic operations (especially 128 bits, such a double CAS to prevent ABA issues). * Install PaRSEC and update your environment variables. Add PaRSEC pkgconfig location to the PKG_CONFIG_PATH environment variable so that MADNESS will find it automatically: ```shell make install export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${TESSE_DIR}/install/lib/pkgconfig ``` * Congratulation! You just got yourself a clean installation of PaRSEC. * **Compile MADNESS**. * Clone the TESSE repo, and switch to the correct branch. ```shell git clone -b madness_over_parsec git@github.com:TESSEorg/madness.git cd madness ``` * Configure. There are 2 ways to do that: using autotools or CMake. * Using autotools (building in the source): ```shell sh ./autogen.sh ./configure --without-tbb —with-parsec=${TESSE_DIR} ``` To enable debugging add the following to the configure command: ```--disable-optimization --enable-debugging```. See ```./configure --help``` for additional options. * Using CMake (with a separate build directory): ```shell mkdir build; cd build cmake -Wno-dev -D ENABLE_TBB=OFF .. ``` To enable debugging add the following command-line option to ```cmake```: ```-DCMAKE_BUILD_TYPE=Debug```. It is recommended to collect all CMake variable definitions in a toolchain file, e.g. see ```madness/cmake/toolchains/generic-mkl-tbb.cmake```. You can specify the toolchain file to use by providing a command-line option to ```cmake``` as ```-DCMAKE_TOOLCHAIN_FILE=```. * Build. ``` make ``` * You are now ready to hack into the TESSE source code! madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/LICENSE0000644000175000017500000003510213717002132017631 0ustar mbambaCopyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/.gitignore0000644000175000017500000000123113717002132020610 0ustar mbambabuild* # Compiled Object files *.slo *.lo *.o *.obj # Compiled Dynamic libraries *.so *.dylib *.dll # Compiled Static libraries *.lai *.la *.a *.lib # Executables *.exe *.out *.app .cproject .project .settings Makefile.in src/madness/config.h.in aclocal.m4 autom4te.cache configure test-driver log.00* org.eclipse.cdt.core.prefs org.eclipse.cdt.ui.prefs .autotools .externalToolBuilders/org.eclipse.cdt.autotools.core.genmakebuilderV2.launch compile config.guess config.sub depcomp install-sh missing /Default/ lt~obsolete.m4 ltversion.m4 ltsugar.m4 ltoptions.m4 ltmain.sh libtool.m4 config.h.in~ cmake/cmake-* cmake/bin cmake/doc cmake/share Makefile-prog.in madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/input0000644000175000017500000000032513717002132017705 0ustar mbambadft xc hf econv 1.e-5 dconv 1.e-4 end cc2 thresh 3D 1.e-4 tda econv hard 1.e-4 tda dconv hard 1.e-3 tda guess dipole+ end geometry he 0.0 0.0 0.0 end plot plane x1 x2 origin 0.0 0.0 0.0 zoom 1.0 end madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/0000755000175000017500000000000013717002132017703 5ustar mbambamadness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/toolchains/0000755000175000017500000000000013717002132022046 5ustar mbambamadness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/toolchains/dancer_gcc.cmake0000644000175000017500000000717513717002132025132 0ustar mbamba# Set the system name so CMake uses the appropriate platform settings. # NOTE: The platforms settings for BlueGeneP are the same for BlueGeneQ # set(CMAKE_SYSTEM_NAME BlueGeneP-static) # # Set environment paths # set(IBM_DIR "$ENV{IBM_MAIN_DIR}") # set(XLF_DIR "${IBM_DIR}/xlf/bg/14.1") # set(XLSMP_DIR "${IBM_DIR}/xlsmp/bg/3.1") # set(ESSL_DIR "/soft/libraries/essl/current/essl/5.1") # set(LAPACK_DIR "/soft/libraries/alcf/current/xl/LAPACK") #set (PARSEC_DIR "/home/aguermou/devel_build_gcc/install") # # V1R2M0 # #set(MPI_DIR "/bgsys/drivers/ppcfloor/comm/gcc") # #set(PAMI_DIR "/bgsys/drivers/ppcfloor/comm/sys") # # V1R2M1 # #set(GCC_DIR "/bgsys/drivers/toolchain/V1R2M2_base_4.7.2/gnu-linux-4.7.2") # # V1R2M2 #set(GCC_DIR "/bgsys/drivers/toolchain/V1R2M2_base_4.7.2-efix14/gnu-linux-4.7.2-efix014") # set(MPI_DIR "/bgsys/drivers/ppcfloor/comm") # set(PAMI_DIR "/bgsys/drivers/ppcfloor/comm") # set(SPI_DIR "/bgsys/drivers/ppcfloor/spi") # Set compilers set(CMAKE_C_COMPILER "/opt/gcc-5.1/bin/gcc") set(CMAKE_CXX_COMPILER "/opt/gcc-5.1/bin/g++") set(CMAKE_Fortran_COMPILER "/opt/gcc-5.1/bin/gfortran") set(MPI_C_COMPILER "mpicc") set(MPI_CXX_COMPILER "mpicxx") # Set compile flags set(CMAKE_C_FLAGS_INIT "-std=c99" CACHE STRING "Inital C compile flags") set(CMAKE_C_FLAGS_DEBUG "-g -Wall" CACHE STRING "Inital C debug compile flags") set(CMAKE_C_FLAGS_MINSIZEREL "-Os -DNDEBUG" CACHE STRING "Inital C minimum size release compile flags") set(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG" CACHE STRING "Inital C release compile flags") set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g -Wall" CACHE STRING "Inital C release with debug info compile flags") set(CMAKE_CXX_FLAGS_INIT " -m64 -mcx16 -g -Wall" CACHE STRING "Inital C++ compile flags") set(CMAKE_CXX_FLAGS_DEBUG "-g -Wall" CACHE STRING "Inital C++ debug compile flags") set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG" CACHE STRING "Inital C++ minimum size release compile flags") set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG" CACHE STRING "Inital C++ release compile flags") set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g -Wall" CACHE STRING "Inital C++ release with debug info compile flags") # Set library #set(XL_LIBRARIES ${XLSMP_DIR}/bglib64/libxlsmp.a) #set(XLF_LIBRARIES ${XLF_DIR}/bglib64/libxlf90_r.a;${XLF_DIR}/bglib64/libxlfmath.a;${XLF_DIR}/bglib64/libxlopt.a;${XLF_DIR}/bglib64/libxl.a;-ldl;-lm) set(BLAS_LIBRARIES /opt/intel/mkl/lib/intel64/libmkl_sequential.so;/opt/intel/mkl/lib/intel64/libmkl_core.so;/opt/intel/mkl/lib/intel64/libmkl_gf_lp64.so;-lm) set(LAPACK_LIBRARIES ${BLAS_LIBRARIES}) set(FORTRAN_INTEGER_SIZE "4" CACHE STRING "Set Fortran integer size in bytes") set(HAVE_SPINLOCKS OFF CACHE BOOL "Enable if pthread lib supports spinlocks in pmrrr") set(PAPI_INCLUDE_DIR "/opt/papi-5.4.3/include") set(PAPI_LIBRARY "/opt/papi-5.4.3/lib/libpapi.so") ############################################################## # set the search path for the environment coming with the compiler # and a directory where you can install your own compiled software #set(CMAKE_FIND_ROOT_PATH # /bgsys/drivers/ppcfloor/ # ${MPI_DIR} # ${PAMI_DIR} # ${SPI_DIR} # ${GCC_DIR} # ${CLANG_DIR} # ${IBM_DIR} # ${XLF_DIR} # ${XLSMP_DIR} # ${ESSL_DIR}) # adjust the default behaviour of the FIND_XXX() commands: # search headers and libraries in the target environment, search # programs in the host environment #set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) #set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) #set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) ############################################################## madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/toolchains/mira-clang11-essl.cmake0000644000175000017500000000547713717002132026205 0ustar mbamba# Set the system name so CMake uses the appropriate platform settings. # NOTE: The platforms settings for BlueGeneP are the same for BlueGeneQ set(CMAKE_SYSTEM_NAME BlueGeneP-static) # Set environment paths set(CLANG_DIR "/soft/compilers/bgclang") set(IBM_DIR "$ENV{IBM_MAIN_DIR}") set(XLF_DIR "${IBM_DIR}/xlf/bg/14.1") set(XLSMP_DIR "${IBM_DIR}/xlsmp/bg/3.1") set(ESSL_DIR "/soft/libraries/essl/current/essl/5.1") set(LAPACK_DIR "/soft/libraries/alcf/current/xl/LAPACK") # V1R2M0 #set(MPI_DIR "/bgsys/drivers/ppcfloor/comm/gcc") #set(PAMI_DIR "/bgsys/drivers/ppcfloor/comm/sys") # V1R2M1 #set(GCC_DIR "/bgsys/drivers/toolchain/V1R2M2_base_4.7.2/gnu-linux-4.7.2") # V1R2M2 set(GCC_DIR "/bgsys/drivers/toolchain/V1R2M2_base_4.7.2-efix14/gnu-linux-4.7.2-efix014") set(MPI_DIR "/bgsys/drivers/ppcfloor/comm") set(PAMI_DIR "/bgsys/drivers/ppcfloor/comm") set(SPI_DIR "/bgsys/drivers/ppcfloor/spi") # Set compilers set(CMAKE_C_COMPILER "${CLANG_DIR}/wbin/bgclang") set(CMAKE_CXX_COMPILER "${CLANG_DIR}/wbin/bgclang++11") set(CMAKE_Fortran_COMPILER "${GCC_DIR}/bin/powerpc64-bgq-linux-gfortran") set(MPI_C_COMPILER "mpicc") set(MPI_CXX_COMPILER "mpicxx") # Set compile flags set(CMAKE_C_FLAGS_INIT "-std=c99 -mcpu=a2 -mtune=a2" CACHE STRING "Inital C compile flags") set(CMAKE_C_FLAGS_DEBUG "-g -Wall" CACHE STRING "Inital C debug compile flags") set(CMAKE_C_FLAGS_MINSIZEREL "-Os -DNDEBUG" CACHE STRING "Inital C minimum size release compile flags") set(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG" CACHE STRING "Inital C release compile flags") set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g -Wall" CACHE STRING "Inital C release with debug info compile flags") set(CMAKE_CXX_FLAGS_INIT "-mcpu=a2 -mtune=a2 -Wno-deprecated-register" CACHE STRING "Inital C++ compile flags") set(CMAKE_CXX_FLAGS_DEBUG "-g -Wall" CACHE STRING "Inital C++ debug compile flags") set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG" CACHE STRING "Inital C++ minimum size release compile flags") set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG" CACHE STRING "Inital C++ release compile flags") set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g -Wall" CACHE STRING "Inital C++ release with debug info compile flags") # Set library set(XL_LIBRARIES ${XLSMP_DIR}/bglib64/libxlsmp.a) set(XLF_LIBRARIES ${XLF_DIR}/bglib64/libxlf90_r.a;${XLF_DIR}/bglib64/libxlfmath.a;${XLF_DIR}/bglib64/libxlopt.a;${XLF_DIR}/bglib64/libxl.a) set(BLAS_LIBRARY ${ESSL_DIR}/lib64/libesslbg.a) set(BLAS_LIBRARIES ${BLAS_LIBRARY};${XLF_LIBRARIES};${XL_LIBRARIES}) set(LAPACK_LIBRARY ${LAPACK_DIR}/lib/liblapack.a) set(LAPACK_LIBRARIES ${LAPACK_LIBRARY};${BLAS_LIBRARIES}) set(FORTRAN_INTEGER_SIZE "4" CACHE STRING "Set Fortran integer size in bytes") set(HAVE_SPINLOCKS OFF CACHE BOOL "Enable if pthread lib supports spinlocks in pmrrr") madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/toolchains/mira-gcc-essl.cmake0000644000175000017500000000675513717002132025513 0ustar mbamba# Set the system name so CMake uses the appropriate platform settings. # NOTE: The platforms settings for BlueGeneP are the same for BlueGeneQ set(CMAKE_SYSTEM_NAME BlueGeneP-static) # Set environment paths set(IBM_DIR "$ENV{IBM_MAIN_DIR}") set(XLF_DIR "${IBM_DIR}/xlf/bg/14.1") set(XLSMP_DIR "${IBM_DIR}/xlsmp/bg/3.1") set(ESSL_DIR "/soft/libraries/essl/current/essl/5.1") set(LAPACK_DIR "/soft/libraries/alcf/current/xl/LAPACK") # V1R2M0 #set(MPI_DIR "/bgsys/drivers/ppcfloor/comm/gcc") #set(PAMI_DIR "/bgsys/drivers/ppcfloor/comm/sys") # V1R2M1 #set(GCC_DIR "/bgsys/drivers/toolchain/V1R2M2_base_4.7.2/gnu-linux-4.7.2") # V1R2M2 set(GCC_DIR "/bgsys/drivers/toolchain/V1R2M2_base_4.7.2-efix14/gnu-linux-4.7.2-efix014") set(MPI_DIR "/bgsys/drivers/ppcfloor/comm") set(PAMI_DIR "/bgsys/drivers/ppcfloor/comm") set(SPI_DIR "/bgsys/drivers/ppcfloor/spi") # Set compilers set(CMAKE_C_COMPILER "${GCC_DIR}/bin/powerpc64-bgq-linux-gcc") set(CMAKE_CXX_COMPILER "${GCC_DIR}/bin/powerpc64-bgq-linux-g++") set(CMAKE_Fortran_COMPILER "${GCC_DIR}/bin/powerpc64-bgq-linux-gfortran") set(MPI_C_COMPILER "mpicc") set(MPI_CXX_COMPILER "mpicxx") # Set compile flags set(CMAKE_C_FLAGS_INIT "-std=c99 -mcpu=a2 -mtune=a2" CACHE STRING "Inital C compile flags") set(CMAKE_C_FLAGS_DEBUG "-g -Wall" CACHE STRING "Inital C debug compile flags") set(CMAKE_C_FLAGS_MINSIZEREL "-Os -DNDEBUG" CACHE STRING "Inital C minimum size release compile flags") set(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG" CACHE STRING "Inital C release compile flags") set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g -Wall" CACHE STRING "Inital C release with debug info compile flags") set(CMAKE_CXX_FLAGS_INIT " -mcpu=a2 -mtune=a2" CACHE STRING "Inital C++ compile flags") set(CMAKE_CXX_FLAGS_DEBUG "-g -Wall" CACHE STRING "Inital C++ debug compile flags") set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG" CACHE STRING "Inital C++ minimum size release compile flags") set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG" CACHE STRING "Inital C++ release compile flags") set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g -Wall" CACHE STRING "Inital C++ release with debug info compile flags") # Set library set(XL_LIBRARIES ${XLSMP_DIR}/bglib64/libxlsmp.a) set(XLF_LIBRARIES ${XLF_DIR}/bglib64/libxlf90_r.a;${XLF_DIR}/bglib64/libxlfmath.a;${XLF_DIR}/bglib64/libxlopt.a;${XLF_DIR}/bglib64/libxl.a;-ldl;-lm;-lpthread) set(BLAS_LIBRARIES ${ESSL_DIR}/lib64/libesslbg.a;${BLAS_LIBRARY};${XLF_LIBRARIES};${XL_LIBRARIES}) set(LAPACK_LIBRARIES ${LAPACK_DIR}/lib/liblapack.a;${BLAS_LIBRARIES}) set(FORTRAN_INTEGER_SIZE "4" CACHE STRING "Set Fortran integer size in bytes") set(HAVE_SPINLOCKS OFF CACHE BOOL "Enable if pthread lib supports spinlocks in pmrrr") ############################################################## # set the search path for the environment coming with the compiler # and a directory where you can install your own compiled software #set(CMAKE_FIND_ROOT_PATH # /bgsys/drivers/ppcfloor/ # ${MPI_DIR} # ${PAMI_DIR} # ${SPI_DIR} # ${GCC_DIR} # ${CLANG_DIR} # ${IBM_DIR} # ${XLF_DIR} # ${XLSMP_DIR} # ${ESSL_DIR}) # adjust the default behaviour of the FIND_XXX() commands: # search headers and libraries in the target environment, search # programs in the host environment #set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) #set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) #set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) ############################################################## madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/toolchains/generic-mkl-tbb.cmake0000644000175000017500000000632213717002132026015 0ustar mbamba# # Generic Toolchain for MPI + MKL + TBB # # REQUIREMENTS: # - in PATH: # mpicc and mpicxx # # OPTIONS: # - environment variables: # * MKLROOT: the MKL root directory; if not set, will use /opt/intel/mkl # * TBBROOT: the TBB root directory; if not set, will use /opt/intel/tbb # # Compilers # These seem to break findmpi module #if(NOT CMAKE_C_COMPILER) # set(CMAKE_C_COMPILER mpicc) #endif() #if(NOT CMAKE_CXX_COMPILER) # set(CMAKE_CXX_COMPILER mpicxx) #endif() #if (NOT MPI_C_COMPILER) # set(MPI_C_COMPILER mpicc) #endif() #if (NOT MPI_CXX_COMPILER) # set(MPI_CXX_COMPILER mpicxx) #endif() # Specify the GNU compilers to use with Intel C/C++ set(GCC_ROOT_DIR "$ENV{GCC_DIR}") set(GCC_SUFFIX "$ENV{GCC_SUFFIX}") if (CMAKE_CXX_COMPILER_ID EQUAL "Intel" AND GCC_ROOT_DIR) set(CMAKE_C_FLAGS_INIT "-std=c99 -gcc-name=${GCC_ROOT_DIR}/bin/gcc${GCC_SUFFIX}" CACHE STRING "Inital C compile flags") set(CMAKE_CXX_FLAGS_INIT "-gxx-name=${GCC_ROOT_DIR}/bin/g++${GCC_SUFFIX}" CACHE STRING "Initial C++ compile flags") else() set(CMAKE_C_FLAGS_INIT "-std=c99" CACHE STRING "Inital C compile flags") set(CMAKE_CXX_FLAGS_INIT "" CACHE STRING "Initial C++ compile flags") endif() set(CMAKE_C_FLAGS_DEBUG "-g -Wall -Wno-deprecated-declarations -Wno-comment" CACHE STRING "Inital C debug compile flags") set(CMAKE_C_FLAGS_MINSIZEREL "-O1 -DNDEBUG -march=native" CACHE STRING "Inital C minimum size release compile flags") set(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG -march=native" CACHE STRING "Inital C release compile flags") set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -DNDEBUG -g -Wall -Wno-deprecated-declarations -Wno-comment" CACHE STRING "Inital C release with debug info compile flags") set(CMAKE_CXX_FLAGS_DEBUG "-g -Wall -Wno-class-memaccess -Wno-deprecated-declarations -Wno-comment" CACHE STRING "Inital C++ debug compile flags") set(CMAKE_CXX_FLAGS_MINSIZEREL "-O1 -DNDEBUG -march=native -Wall -Wno-class-memaccess -Wno-deprecated-declarations -Wno-comment" CACHE STRING "Inital C++ minimum size release compile flags") set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG -march=native -Wall -Wno-class-memaccess -Wno-deprecated-declarations -Wno-comment" CACHE STRING "Inital C++ release compile flags") set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -DNDEBUG -g -Wall -Wno-class-memaccess -Wno-deprecated-declarations -Wno-comment" CACHE STRING "Inital C++ release with debug info compile flags") # Libraries if(EXISTS $ENV{MKLROOT}) set(MKL_ROOT_DIR "$ENV{MKLROOT}" CACHE PATH "MKL root directory") else() set(MKL_ROOT_DIR "/opt/intel/mkl" CACHE PATH "MKL root directory") endif() if(EXISTS $ENV{TBBROOT}) set(TBB_ROOT_DIR "$ENV{TBBROOT}" CACHE PATH "TBB root directory") else() set(TBB_ROOT_DIR "/opt/intel/tbb" CACHE PATH "TBB root directory") endif() # Flags set(LAPACK_LIBRARIES "-L${MKL_ROOT_DIR}/lib" "-lmkl_intel_ilp64" "-lmkl_core" "-lmkl_sequential" "-lm" CACHE STRING "LAPACK linker flags") set(LAPACK_INCLUDE_DIRS ${MKL_ROOT_DIR}/include CACHE STRING "LAPACK include directories") set(LAPACK_COMPILE_DEFINITIONS MKL_DIRECT_CALL;MKL_INT=long CACHE STRING "LAPACK compile definitions") set(FORTRAN_INTEGER_SIZE "8" CACHE STRING "Set Fortran integer size to 8 bytes") madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/toolchains/arm-gnu-tbb.cmake0000644000175000017500000000534513717002132025172 0ustar mbamba# # ARM Toolchain for MPI + TBB # # REQUIREMENTS: # - in PATH: # mpicc and mpicxx # # OPTIONS: # - environment variables: # # Compilers if(NOT CMAKE_C_COMPILER) set(CMAKE_C_COMPILER mpicc) endif() if(NOT CMAKE_CXX_COMPILER) set(CMAKE_CXX_COMPILER mpicxx) endif() if (NOT MPI_C_COMPILER) set(MPI_C_COMPILER mpicc) endif() if (NOT MPI_CXX_COMPILER) set(MPI_CXX_COMPILER mpicxx) endif() set(CMAKE_C_FLAGS_DEBUG "-g -Wall -Wno-deprecated-declarations -Wno-comment" CACHE STRING "Inital C debug compile flags") set(CMAKE_C_FLAGS_MINSIZEREL "-O1 -DNDEBUG -march=native" CACHE STRING "Inital C minimum size release compile flags") set(CMAKE_C_FLAGS_RELEASE "-Ofast -floop-optimize -falign-loops -falign-labels -falign-functions -falign-jumps -fomit-frame-pointer -DNDEBUG -march=native" CACHE STRING "Inital C release compile flags") set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -floop-optimize -falign-loops -falign-labels -falign-functions -falign-jumps -DNDEBUG -g -Wall -Wno-deprecated-declarations -Wno-comment" CACHE STRING "Inital C release with debug info compile flags") set(CMAKE_CXX_FLAGS_DEBUG "-g -Wall -Wno-class-memaccess -Wno-deprecated-declarations -Wno-comment" CACHE STRING "Inital C++ debug compile flags") set(CMAKE_CXX_FLAGS_MINSIZEREL "-O1 -DNDEBUG -march=native -Wall -Wno-class-memaccess -Wno-deprecated-declarations -Wno-comment" CACHE STRING "Inital C++ minimum size release compile flags") set(CMAKE_CXX_FLAGS_RELEASE "-Ofast -floop-optimize -falign-loops -falign-labels -falign-functions -falign-jumps -fomit-frame-pointer -DNDEBUG -march=native -Wall -Wno-class-memaccess -Wno-deprecated-declarations -Wno-comment" CACHE STRING "Inital C++ release compile flags") set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -floop-optimize -falign-loops -falign-labels -falign-functions -falign-jumps -DNDEBUG -g -Wall -Wno-class-memaccess -Wno-deprecated-declarations -Wno-comment" CACHE STRING "Inital C++ release with debug info compile flags") # Libraries if(EXISTS $ENV{TBBROOT}) set(TBB_ROOT_DIR "$ENV{TBBROOT}" CACHE PATH "TBB root directory") else() set(TBB_ROOT_DIR "/opt/intel/tbb" CACHE PATH "TBB root directory") endif() # Flags set(LAPACK_LIBRARIES "-L/usr/lib/aarch64-linux-gnu/openblas" "-llapacke" "-llapack" "-lopenblas") #set(LAPACK_LIBRARIES "-L/opt/arm/armpl-19.2.0_Cortex-A72_Ubuntu-16.04_arm-hpc-compiler_19.2_aarch64-linux/lib" "-larmpl" "-lamath") #set(LAPACK_COMPILE_DEFINITIONS MADNESS_LINALG_USE_LAPACKE CACHE STRING "LAPACK preprocessor definitions") #set(LAPACK_INCLUDE_DIRS ${MKL_ROOT_DIR}/include CACHE STRING "LAPACK include directories") set(INTEGER4 TRUE CACHE BOOL "Set Fortran integer size to 4 bytes") set(FORTRAN_INTEGER_SIZE "4" CACHE STRING "Set Fortran integer size to 4 bytes") madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/toolchains/osx-clang-mkl-tbb.cmake0000644000175000017500000000452713717002132026301 0ustar mbamba# # Generic Toolchain for OS X + MPI + MKL + TBB # # REQUIREMENTS: # - in PATH: # mpicc and mpicxx, both using clang as the backend # # OPTIONS: # - environment variables: # * MKLROOT: the MKL root directory; if not set, will use /opt/intel/mkl # * TBBROOT: the TBB root directory; if not set, will use /opt/intel/tbb # # this is key to avoid RPATH problems set(CMAKE_SYSTEM_NAME Darwin) # Compilers set(CMAKE_C_COMPILER clang) set(CMAKE_CXX_COMPILER clang++) set(MPI_C_COMPILER mpicc) set(MPI_CXX_COMPILER mpicxx) # Compile flags set(CMAKE_C_FLAGS_INIT "-std=c99" CACHE STRING "Inital C compile flags") set(CMAKE_C_FLAGS_DEBUG "-g -Wall" CACHE STRING "Inital C debug compile flags") set(CMAKE_C_FLAGS_MINSIZEREL "-Os -march=native -DNDEBUG" CACHE STRING "Inital C minimum size release compile flags") set(CMAKE_C_FLAGS_RELEASE "-O3 -march=native -DNDEBUG" CACHE STRING "Inital C release compile flags") set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g -Wall" CACHE STRING "Inital C release with debug info compile flags") set(CMAKE_CXX_FLAGS_INIT "-I/usr/local/include -stdlib=libc++" CACHE STRING "Inital C++ compile flags") set(CMAKE_CXX_FLAGS_DEBUG "-g -Wall" CACHE STRING "Inital C++ debug compile flags") set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -march=native -DNDEBUG" CACHE STRING "Inital C++ minimum size release compile flags") set(CMAKE_CXX_FLAGS_RELEASE "-O3 -march=native -DNDEBUG" CACHE STRING "Inital C++ release compile flags") set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g -Wall" CACHE STRING "Inital C++ release with debug info compile flags") # Libraries if(EXISTS $ENV{MKLROOT}) set(MKL_ROOT_DIR "$ENV{MKLROOT}" CACHE PATH "MKL root directory") else() set(MKL_ROOT_DIR "/opt/intel/mkl" CACHE PATH "MKL root directory") endif() if(EXISTS $ENV{TBBROOT}) set(TBB_ROOT_DIR "$ENV{TBBROOT}" CACHE PATH "TBB root directory") else() set(TBB_ROOT_DIR "/opt/intel/tbb" CACHE PATH "TBB root directory") endif() # Flags set(LAPACK_LIBRARIES "-L${MKL_ROOT_DIR}/lib" "-lmkl_intel_lp64" "-lmkl_core" "-lmkl_sequential" "-lm" CACHE STRING "LAPACK linker flags") set(LAPACK_INCLUDE_DIRS ${MKL_ROOT_DIR}/include CACHE STRING "LAPACK include directories") set(LAPACK_COMPILE_DEFINITIONS MKL_DIRECT_CALL CACHE STRING "LAPACK compile definitions") set(INTEGER4 TRUE CACHE BOOL "Set Fortran integer size to 4 bytes")madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/toolchains/osx-clang-accelerate-tbb.cmake0000644000175000017500000000404013717002132027574 0ustar mbamba# # Generic Toolchain for OS X + MPI + TBB # # REQUIREMENTS: # - in PATH: # mpicc and mpicxx, both using clang as the backend # # OPTIONS: # - environment variables: # * MKLROOT: the MKL root directory; if not set, will use /opt/intel/mkl # * TBBROOT: the TBB root directory; if not set, will use /opt/intel/tbb # # this is key to avoid RPATH problems set(CMAKE_SYSTEM_NAME Darwin) # Compilers set(CMAKE_C_COMPILER clang) set(CMAKE_CXX_COMPILER clang++) set(MPI_C_COMPILER mpicc) set(MPI_CXX_COMPILER mpicxx) # Compile flags set(CMAKE_C_FLAGS_INIT "-std=c99" CACHE STRING "Inital C compile flags") set(CMAKE_C_FLAGS_DEBUG "-O0 -g -Wall" CACHE STRING "Inital C debug compile flags") set(CMAKE_C_FLAGS_MINSIZEREL "-Os -march=native -DNDEBUG" CACHE STRING "Inital C minimum size release compile flags") set(CMAKE_C_FLAGS_RELEASE "-O3 -march=native -DNDEBUG" CACHE STRING "Inital C release compile flags") set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g -Wall" CACHE STRING "Inital C release with debug info compile flags") set(CMAKE_CXX_FLAGS_INIT " -stdlib=libc++" CACHE STRING "Inital C++ compile flags") set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -Wall" CACHE STRING "Inital C++ debug compile flags") set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os -march=native -DNDEBUG" CACHE STRING "Inital C++ minimum size release compile flags") set(CMAKE_CXX_FLAGS_RELEASE "-O3 -march=native -DNDEBUG" CACHE STRING "Inital C++ release compile flags") set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g -Wall" CACHE STRING "Inital C++ release with debug info compile flags") # Libraries if(EXISTS $ENV{TBBROOT}) set(TBB_ROOT_DIR "$ENV{TBBROOT}" CACHE PATH "TBB root directory") else() set(TBB_ROOT_DIR "/opt/intel/tbb" CACHE PATH "TBB root directory") endif() # Set BLAS/LAPACK flags set(ENABLE_MKL OFF) set(LAPACK_LIBRARIES "-framework;Accelerate" CACHE STRING "LAPACK libraries") set(LAPACK_COMPILE_OPTIONS "-framework;Accelerate" CACHE STRING "LAPACK compiler options") set(INTEGER4 TRUE CACHE BOOL "Set Fortran integer size to 4 bytes") madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/config.h.in0000644000175000017500000001223713717002132021733 0ustar mbamba/* Input file cmake/config.h.in. */ /* Define of package information */ #define MADNESS_PACKAGE_NAME "@PROJECT_NAME@" #define MADNESS_PACKAGE_URL "https://github.com/m-a-d-n-e-s-s/madness" #define MADNESS_PACKAGE_VERSION "@MADNESS_VERSION@" #define MADNESS_VERSION "@MADNESS_VERSION@" #define MADNESS_MAJOR_VERSION @MADNESS_MAJOR_VERSION@ #define MADNESS_MINOR_VERSION @MADNESS_MAJOR_VERSION@ #define MADNESS_MICRO_VERSION @MADNESS_MAJOR_VERSION@ #define MADNESS_REVISION "@MADNESS_REVISION@" /* Configured information */ #define MADNESS_CONFIGURATION_CXX "@CMAKE_CXX_COMPILER@" #define MADNESS_CONFIGURATION_CXXFLAGS "@CMAKE_CXX_FLAGS@" #define HOST_SYSTEM "@CMAKE_HOST_SYSTEM_NAME@" #define MADNESS_CONFIGURATION_DATE "@MADNESS_CONFIGURATION_DATE@" #define MADNESS_CONFIGURATION_HOST "@MADNESS_CONFIGURATION_HOST@" #define MADNESS_CONFIGURATION_USER "@MADNESS_CONFIGURATION_USER@" /* Target for tuning mtxmq kernels */ #cmakedefine AMD_QUADCORE_TUNE 1 /* Fortran-C linking convention type and integer size */ #cmakedefine FORTRAN_LINKAGE_LC 1 #cmakedefine FORTRAN_LINKAGE_LCU 1 #cmakedefine FORTRAN_LINKAGE_LCUU 1 #cmakedefine FORTRAN_LINKAGE_UC 1 #cmakedefine FORTRAN_LINKAGE_UCU 1 #define MADNESS_FORTRAN_DEFAULT_INTEGER_SIZE @FORTRAN_INTEGER_SIZE@ /* Defined system specific macros */ #cmakedefine HAVE_CRAYXE 1 #cmakedefine HAVE_CRAYXT 1 #cmakedefine HAVE_IBMBGP 1 #cmakedefine HAVE_IBMBGQ 1 #cmakedefine ON_A_MAC 1 #define MADNESS_CXX_ABI_GenericItanium @MADNESS_CXX_ABI_GenericItanium@ #define MADNESS_CXX_ABI_GenericARM @MADNESS_CXX_ABI_GenericARM@ #define MADNESS_CXX_ABI_Microsoft @MADNESS_CXX_ABI_Microsoft@ #define MADNESS_CXX_ABI @MADNESS_CXX_ABI@ /* Define type macros. */ #cmakedefine HAVE_INT64_T 1 #cmakedefine HAVE_LONG_LONG 1 /* Define to `int' if does not define. */ #cmakedefine SYS_TYPES_H_HAS_PID_T 1 #if !defined(SYS_TYPES_H_HAS_PID_T) # define pid_t int #endif /* Define MADNESS has access to the library. */ #cmakedefine HAVE_ACML 1 #cmakedefine HAVE_INTEL_TBB 1 #cmakedefine MADNESS_CAN_USE_TBB_PRIORITY 1 #cmakedefine HAVE_PARSEC 1 #cmakedefine HAVE_INTEL_MKL 1 #cmakedefine HAVE_PAPI 1 #cmakedefine MADNESS_HAS_PCM 1 #cmakedefine MADNESS_HAS_LIBXC 1 #cmakedefine MADNESS_HAS_BOOST 1 #cmakedefine MADNESS_HAS_ELEMENTAL 1 #cmakedefine MADNESS_HAS_ELEMENTAL_EMBEDDED 1 #cmakedefine MADNESS_HAS_GOOGLE_PERF_MINIMAL 1 #cmakedefine MADNESS_HAS_GOOGLE_TEST 1 #cmakedefine MADNESS_HAS_LIBUNWIND 1 /* Define has access to function. */ #cmakedefine HAVE_FORK 1 #cmakedefine HAVE_MEMSET 1 #cmakedefine HAVE_POSIX_MEMALIGN 1 #cmakedefine MISSING_POSIX_MEMALIGN_PROTO 1 #cmakedefine HAVE_POW 1 #cmakedefine HAVE_RANDOM 1 #cmakedefine HAVE_SLEEP 1 #cmakedefine HAVE_STD_ABS_LONG 1 #cmakedefine HAVE_STRCHR 1 /* Define if header files are available. */ #ifndef HAVE_SYS_STAT_H #cmakedefine HAVE_SYS_STAT_H 1 #endif #ifndef HAVE_SYS_TYPES_H #cmakedefine HAVE_SYS_TYPES_H #endif #ifndef HAVE_UNISTD_H #cmakedefine HAVE_UNISTD_H 1 #endif #cmakedefine HAVE_ELEMENTAL_H 1 #cmakedefine HAVE_EL_H 1 /* Set if compiler will instantiate static templates */ #cmakedefine HAVE_UNQUALIFIED_STATIC_DECL 1 /* Set MADNESS assertions behavior */ #cmakedefine MADNESS_ASSERTIONS_ABORT 1 #cmakedefine MADNESS_ASSERTIONS_ASSERT 1 #cmakedefine MADNESS_ASSERTIONS_DISABLE 1 #cmakedefine MADNESS_ASSERTIONS_THROW 1 /* Thread-safety level requested from MPI by MADNESS */ #define MADNESS_MPI_THREAD_LEVEL @MADNESS_MPI_THREAD_LEVEL@ #cmakedefine STUBOUTMPI 1 #ifndef MADNESS_MPI_HEADER # cmakedefine MADNESS_MPI_HEADER "@MADNESS_MPI_HEADER@" #endif /* The default binding for threads */ #define MAD_BIND_DEFAULT "@MAD_BIND_DEFAULT@" /* Define to enable MADNESS features */ #cmakedefine MADNESS_TASK_PROFILING 1 #cmakedefine MADNESS_USE_BSEND_ACKS 1 #cmakedefine NEVER_SPIN 1 #cmakedefine TENSOR_BOUNDS_CHECKING 1 #cmakedefine TENSOR_INSTANCE_COUNT 1 #cmakedefine USE_SPINLOCKS 1 #cmakedefine WORLD_GATHER_MEM_STATS 1 #cmakedefine WORLD_MEM_PROFILE_ENABLE 1 #cmakedefine WORLD_PROFILE_ENABLE 1 #cmakedefine MADNESS_TASK_DEBUG_TRACE 1 #cmakedefine MADNESS_LINALG_USE_LAPACKE 1 #cmakedefine MADNESS_DQ_USE_PREBUF 1 #cmakedefine MADNESS_DQ_PREBUF_SIZE @MADNESS_DQ_PREBUF_SIZE@ #cmakedefine MADNESS_ASSUMES_ASLR_DISABLED 1 /* Define to the equivalent of the C99 'restrict' keyword, or to nothing if this is not supported. Do not define if restrict is supported directly. */ #define MADNESS_RESTRICT @RESTRICT_KEYWORD@ /* Work around a bug in Sun C++: it does not support _Restrict or __restrict__, even though the corresponding Sun C compiler ends up with "#define restrict _Restrict" or "#define restrict __restrict__" in the previous line. Perhaps some future version of Sun C++ will work with restrict; if so, hopefully it defines __RESTRICT like Sun C does. */ #if defined __SUNPRO_CC && !defined __RESTRICT # define _Restrict # define __restrict__ #endif /* Define the thread_local key word. */ #cmakedefine THREAD_LOCAL_KEYWORD @THREAD_LOCAL_KEYWORD@ #if defined(THREAD_LOCAL_KEYWORD) # define thread_local THREAD_LOCAL_KEYWORD #endif /* Define to the application path if available */ #cmakedefine HAVE_XTERM 1 #cmakedefine XTERM_EXECUTABLE "@XTERM_EXECUTABLE@" #cmakedefine HAVE_GDB 1 #cmakedefine GDB_EXECUTABLE "@GDB_EXECUTABLE@" madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/0000755000175000017500000000000013717002132021353 5ustar mbamba././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootmadness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/ConvertLibrariesListToCompilerArgs.cmakemadness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/ConvertLibrariesListToCompilerArgs.cm0000644000175000017500000000325613717002132030626 0ustar mbamba# # This file is a part of TiledArray. # Copyright (C) 2013 Virginia Tech # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Justus Calvin # Department of Chemistry, Virginia Tech # # ConvertLibrariesListToCompilerArgs.cmake # Jul 19, 2013 # # # Converts a list of libraries (second argument, don't forget to enclose the # list in quotes) into a list of command-line parameters to the compiler/linker. # macro(convert_libs_to_compargs _args _libs ) # transform library list into compiler args foreach (_lib ${_libs}) get_filename_component(_ext ${_lib} EXT) get_filename_component(_libname ${_lib} NAME_WE) if(APPLE AND "${_ext}" STREQUAL ".framework") # Handle Apple Frameworks get_filename_component(_path ${_lib} PATH) if(${_path} STREQUAL "/System/Library/Frameworks") set(MAD_LIBS "${${_args}} -F${_path} -framework ${_libname}") else() set(MAD_LIBS "${${_args}} -framework ${_libname}") endif() else() # Handle the general case set(MAD_LIBS "${${_args}} ${_lib}") endif() endforeach() endmacro() madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/FindACML.cmake0000644000175000017500000000205013717002132023667 0ustar mbamba# - Try to find acml # Input variables: # ACML_ROOT_DIR - The acml install directory # ACML_LIBRARY - The acml library directory # Output variables: # ACML_FOUND - System has acml # ACML_LIBRARIES - The libraries needed to use acml include(FindPackageHandleStandardArgs) if(NOT ACML_FOUND) # Set default sarch paths for acml if(ACML_ROOT_DIR) if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND CMAKE_SYSTEM_NAME STREQUAL "Linux") set(ACML_LIBRARY ${ACML_ROOT_DIR}/lib64;${ACML_ROOT_DIR}/lib CACHE PATH "The library directory for acml") else() set(ACML_LIBRARY ${ACML_ROOT_DIR}/lib CACHE PATH "The library directory for acml") endif() endif() find_library(ACML_LIBRARIES acml HINTS ${ACML_LIBRARY}) # handle the QUIETLY and REQUIRED arguments and set ACML_FOUND to TRUE # if all listed variables are TRUE find_package_handle_standard_args(ACML FOUND_VAR ACML_FOUND REQUIRED_VARS ACML_LIBRARIES) mark_as_advanced(ACML_INCLUDE_DIR ACML_LIBRARY ACML_INCLUDE_DIRS ACML_LIBRARIES) endif()madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/FindTBB.cmake0000644000175000017500000001206013717002132023564 0ustar mbamba# - Try to find Intel TBB # Input variables: # TBB_ROOT_DIR - The TBB install directory # TBB_INCLUDE_DIR - The TBB include directory # TBB_LIBRARY - The TBB library directory # Output variables: # TBB_FOUND - System has TBB # TBB_INCLUDE_DIRS - The tbb include directories # TBB_LIBRARIES - The libraries needed to use TBB # TBB_VERSION - The version string for TBB include(FindPackageHandleStandardArgs) if(NOT TBB_FOUND) # Set default sarch paths for TBB if(NOT TBB_ROOT_DIR AND NOT DEFINED TBB_ROOT_DIR) if(EXISTS $ENV{TBBROOT}) set(TBB_ROOT_DIR "$ENV{TBBROOT}") elseif(EXISTS /opt/intel/tbb) set(TBB_ROOT_DIR /opt/intel/tbb) endif() endif() if(TBB_ROOT_DIR) # NOTE: Will not overwrite user defined include and library directory variables set(TBB_INCLUDE_DIR ${TBB_ROOT_DIR}/include CACHE PATH "The include directory for TBB") if(CMAKE_SYSTEM_NAME MATCHES "Darwin") set(TBB_LIBRARY ${TBB_ROOT_DIR}/lib/libc++;${TBB_ROOT_DIR}/lib CACHE PATH "The library directory for TBB") elseif(CMAKE_SYSTEM_NAME MATCHES "Linux") if (EXISTS ${TBB_ROOT_DIR}/lib/intel64/gcc4.8) # Intel packaged TBB (2020+) set(TBB_LIBRARY ${TBB_ROOT_DIR}/lib/intel64/gcc4.8 CACHE PATH "The library directory for TBB") elseif (EXISTS ${TBB_ROOT_DIR}/lib/intel64/gcc4.7) # Intel packaged TBB set(TBB_LIBRARY ${TBB_ROOT_DIR}/lib/intel64/gcc4.7 CACHE PATH "The library directory for TBB") elseif(EXISTS ${TBB_ROOT_DIR}/lib/intel64/gcc4.4) # Intel packaged TBB set(TBB_LIBRARY ${TBB_ROOT_DIR}/lib/intel64/gcc4.4 CACHE PATH "The library directory for TBB") elseif(EXISTS ${TBB_ROOT_DIR}/lib/intel64/gcc4.1) # Intel packaged TBB set(TBB_LIBRARY ${TBB_ROOT_DIR}/lib/intel64/gcc4.1 CACHE PATH "The library directory for TBB") else() # Intel OSS TBB set(TBB_LIBRARY ${TBB_ROOT_DIR}/lib CACHE PATH "The library directory for TBB") endif() else() set(TBB_LIBRARY ${TBB_ROOT_DIR}/lib CACHE PATH "The library directory for TBB") endif() endif() if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo") set(TBB_USE_DEBUG TRUE) else() set(TBB_USE_DEBUG FALSE) endif() # Search for TBB include directory find_path(TBB_INCLUDE_DIRS NAMES tbb/task.h HINTS ${TBB_INCLUDE_DIR}) # Search for TBB libraries find_library(TBB_tbb_LIBRARY tbb HINTS ${TBB_LIBRARY}) if(TBB_tbb_LIBRARY) get_filename_component(TBB_tbb_LIBRARY_DIR "${TBB_tbb_LIBRARY}" PATH) find_library(TBB_tbb_debug_LIBRARY tbb_debug HINTS ${TBB_tbb_LIBRARY_DIR} NO_DEFAULT_PATH) foreach(_comp tbb_preview tbbmalloc tbbmalloc_proxy) find_library(TBB_${_comp}_LIBRARY ${_comp} HINTS ${TBB_tbb_LIBRARY_DIR} NO_DEFAULT_PATH) find_library(TBB_${_comp}_debug_LIBRARY ${_comp}_debug HINTS ${TBB_tbb_LIBRARY_DIR} NO_DEFAULT_PATH) endforeach() endif() # Process TBB libaraies foreach(_lib tbb tbb_preview tbbmalloc tbbmalloc_proxy) # Set library found variables if(TBB_${_lib}_LIBRARY) set(TBB_${_lib}_FOUND TRUE) else() set(TBB_${_lib}_FOUND FALSE) endif() if(TBB_${_lib}_debug_LIBRARY) set(TBB_${_lib}_debug_FOUND TRUE) else() set(TBB_${_lib}_debug_FOUND FALSE) endif() # Set the build type TBB library variables if(_lib STREQUAL "tbb" OR ";${TBB_FIND_COMPONENTS};" MATCHES ";${_lib};") if(TBB_${_lib}_FOUND) set(TBB_LIBRARIES_RELEASE ${TBB_${_lib}_LIBRARY} ${TBB_LIBRARIES_RELEASE}) endif() if(TBB_${_lib}_debug_FOUND) set(TBB_LIBRARIES_DEBUG ${TBB_${_lib}_debug_LIBRARY} ${TBB_LIBRARIES_DEBUG}) endif() endif() endforeach() # Set the TBB_LIBRARIES variable if(TBB_USE_DEBUG AND TBB_LIBRARIES_DEBUG) set(TBB_LIBRARIES ${TBB_LIBRARIES_DEBUG}) else() set(TBB_LIBRARIES ${TBB_LIBRARIES_RELEASE}) endif() # Get TBB version if(TBB_INCLUDE_DIRS) file(READ "${TBB_INCLUDE_DIRS}/tbb/tbb_stddef.h" _tbb_version_file) string(REGEX REPLACE ".*#define TBB_VERSION_MAJOR ([0-9]+).*" "\\1" TBB_VERSION_MAJOR "${_tbb_version_file}") string(REGEX REPLACE ".*#define TBB_VERSION_MINOR ([0-9]+).*" "\\1" TBB_VERSION_MINOR "${_tbb_version_file}") string(REGEX REPLACE ".*#define TBB_INTERFACE_VERSION ([0-9]+).*" "\\1" TBB_INTERFACE_VERSION "${_tbb_version_file}") set(TBB_VERSION "${TBB_VERSION_MAJOR}.${TBB_VERSION_MINOR}") unset(_tbb_version_header) endif() # handle the QUIETLY and REQUIRED arguments and set TBB_FOUND to TRUE # if all listed variables are TRUE find_package_handle_standard_args(TBB FOUND_VAR TBB_FOUND VERSION_VAR TBB_VERSION REQUIRED_VARS TBB_LIBRARIES TBB_INCLUDE_DIRS HANDLE_COMPONENTS) if(TBB_LIBRARIES_DEBUG) set(TBB_COMPILE_FLAGS_DEBUG "-DTBB_USE_DEBUG=1") endif() mark_as_advanced(TBB_INCLUDE_DIR TBB_LIBRARY TBB_INCLUDE_DIRS TBB_LIBRARIES) endif() madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/AddOptions.cmake0000644000175000017500000001073513717002132024427 0ustar mbamba# see https://github.com/WVU-ASEL/glidar/blob/master/cmake/Modules/AddOptions.cmake # - Add options without repeating them on the command line # # Synopsis: # # add_options (lang build opts) # # where: # # lang Name of the language whose compiler should receive the # options, e.g. CXX. If a comma-separated list is received # then the option is added for all those languages. Use the # special value ALL_LANGUAGES for these languages: CXX, C # and Fortran # # build Kind of build to which this options should apply, # such as DEBUG and RELEASE. This can also be a comma- # separated list. Use the special value ALL_BUILDS to apply # to all builds. # # opts List of options to add. Each should be quoted. # # Example: # # add_options (CXX RELEASE "-O3" "-DNDEBUG" "-Wall") function (add_options langs builds) # special handling of empty language specification if ("${langs}" STREQUAL "ALL_LANGUAGES") set (langs CXX C Fortran) endif ("${langs}" STREQUAL "ALL_LANGUAGES") foreach (lang IN LISTS langs) # prepend underscore if necessary foreach (build IN LISTS builds) if (NOT ("${build}" STREQUAL "ALL_BUILDS")) set (_bld "_${build}") string (TOUPPER "${_bld}" _bld) else (NOT ("${build}" STREQUAL "ALL_BUILDS")) set (_bld "") endif (NOT ("${build}" STREQUAL "ALL_BUILDS")) # if we want everything in the "global" flag, then simply # ignore the build type here and go add everything to that one if (CMAKE_NOT_USING_CONFIG_FLAGS) set (_bld "") endif () foreach (_opt IN LISTS ARGN) set (_var "CMAKE_${lang}_FLAGS${_bld}") #message (STATUS "Adding \"${_opt}\" to \${${_var}}") # remove it first string (REPLACE "${_opt}" "" _without "${${_var}}") string (STRIP "${_without}" _without) # we need to strip this one as well, so they are comparable string (STRIP "${${_var}}" _stripped) # if it wasn't there, then add it at the end if ("${_without}" STREQUAL "${_stripped}") # don't add any extra spaces if no options yet are set if (NOT ${_stripped} STREQUAL "") set (${_var} "${_stripped} ${_opt}") else (NOT ${_stripped} STREQUAL "") set (${_var} "${_opt}") endif (NOT ${_stripped} STREQUAL "") set (${_var} "${${_var}}" PARENT_SCOPE) endif ("${_without}" STREQUAL "${_stripped}") endforeach (_opt) endforeach (build) endforeach (lang) endfunction (add_options lang build) # set varname to flag unless user has specified something that matches regex function (set_default_option lang varname flag regex) # lang is either C, CXX or Fortran if ("${lang}" STREQUAL "Fortran") set (letter "F") else () set (letter "${lang}") endif () string (TOUPPER "${CMAKE_BUILD_TYPE}" _build) if ((NOT ("$ENV{${letter}FLAGS}" MATCHES "${regex}")) AND (NOT ("${CMAKE_${lang}_FLAGS}" MATCHES "${regex}")) AND (NOT ("${CMAKE_${lang}_FLAGS_${_build}}" MATCHES "${regex}"))) set (${varname} ${flag} PARENT_SCOPE) else () set (${varname} PARENT_SCOPE) endif () endfunction (set_default_option) # clear default options as a proxy for not using any default options # at all. there is one *huge* problem with this: CMake runs the platform # initialization before executing any line at all in the project and # there seems to be no way to disable that behaviour, so we cannot really # distinguish between a platform default and something that the user has # passed on the command line. the best thing we can do is to all user- # defined setting if they are something other than the platform default. macro (no_default_options) foreach (lang IN ITEMS C CXX Fortran) foreach (build IN ITEMS DEBUG RELEASE MINSIZEREL RELWITHDEBINFO) if ("${CMAKE_${lang}_FLAGS_${build}}" STREQUAL "${CMAKE_${lang}_FLAGS_${build}_INIT}") # for some strange reason we cannot clear this flag, only set it to empty set (CMAKE_${lang}_FLAGS_${build} "") endif () endforeach (build) endforeach (lang) endmacro (no_default_options)madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/FindLibxc.cmake0000644000175000017500000000347513717002132024230 0ustar mbamba# - Try to find Libxc # Input variables: # LIBXC_ROOT_DIR - The libxc install directory # LIBXC_INCLUDE_DIR - The libxc include directory # LIBXC_LIBRARY - The libxc library directory # Output variables: # LIBXC_FOUND - System has libxc # LIBXC_INCLUDE_DIRS - The libxc include directories # LIBXC_LIBRARIES - The libraries needed to use libxc # LIBXC_VERSION - The version string for libxc include(FindPackageHandleStandardArgs) if(NOT LIBXC_FOUND) # Set default sarch paths for libxc if(LIBXC_ROOT_DIR) set(LIBXC_INCLUDE_DIR ${LIBXC_ROOT_DIR}/include CACHE PATH "The include directory for libxc") if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND CMAKE_SYSTEM_NAME STREQUAL "Linux") set(LIBXC_LIBRARY ${LIBXC_ROOT_DIR}/lib64;${LIBXC_ROOT_DIR}/lib CACHE PATH "The library directory for libxc") else() set(LIBXC_LIBRARY ${LIBXC_ROOT_DIR}/lib CACHE PATH "The library directory for libxc") endif() endif() find_path(LIBXC_INCLUDE_DIRS NAMES xc.h xc_funcs.h HINTS ${LIBXC_INCLUDE_DIR}) find_library(LIBXC_LIBRARIES xc HINTS ${LIBXC_LIBRARY}) # Get libxc version if(LIBXC_INCLUDE_DIRS) file(READ "${LIBXC_INCLUDE_DIRS}/xc_version.h" _libxc_version_header) string(REGEX MATCH "define[ \t]+XC_VERSION[ \t]+\\\"([0-9\\.]+)\\\"" LIBXC_VERSION "${_libxc_version_header}") string(REGEX MATCH "([0-9\\.]+)" LIBXC_VERSION "${LIBXC_VERSION}") unset(_libxc_version_header) endif() # handle the QUIETLY and REQUIRED arguments and set LIBXC_FOUND to TRUE # if all listed variables are TRUE find_package_handle_standard_args(Libxc FOUND_VAR LIBXC_FOUND VERSION_VAR LIBXC_VERSION REQUIRED_VARS LIBXC_LIBRARIES LIBXC_INCLUDE_DIRS) mark_as_advanced(LIBXC_INCLUDE_DIR LIBXC_LIBRARY LIBXC_INCLUDE_DIRS LIBXC_LIBRARIES) endif() madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/RedefaultableOption.cmake0000644000175000017500000000057213717002132026311 0ustar mbamba# if local variable is defined, use its value as the default, otherwise use _default # this is consistent with cmake 3.13 and later (see policy CMP0077) macro(redefaultable_option _name _descr _default) if (${_name}) set(${_name}_DEFAULT ${${_name}}) else() set(${_name}_DEFAULT ${${_default}}) endif() option(${_name} ${_descr} ${${_name}_DEFAULT}) endmacro()madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/CheckDisablePIESupport.cmake0000644000175000017500000000202313717002132026606 0ustar mbamba include(CheckCXXCompilerFlag) macro(check_disablepie_support _outvar _disablepie_linker_flags) if(NOT ${_outvar}) message(STATUS "Checking for PIE-disabling linker flags") endif() # set the flag manually for Darwin if(CMAKE_SYSTEM_NAME MATCHES "Darwin") set(disablepie_linker_flags "-Wl,-no_pie") else() set(disablepie_linker_flags ) foreach(_disablepie_test_flag "-no-pie") # Try compiling unset(${_outvar} CACHE) check_cxx_compiler_flag(${_disablepie_test_flag} ${_outvar}) if(${_outvar}) list(APPEND disablepie_linker_flags "${_disablepie_test_flag}") break() endif() endforeach() endif() if (disablepie_linker_flags) set(${_disablepie_linker_flags} "${disablepie_linker_flags}" CACHE STRING "Linker flags required to disable PIE support") mark_as_advanced(${_disablepie_linker_flags}) message(STATUS "PIE-disabling linker flags: ${${_disablepie_linker_flags}}") endif() endmacro(check_disablepie_support)madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/CheckCFortranFunctionExists.cmake0000644000175000017500000000174013717002132027741 0ustar mbambainclude(CheckFunctionExists) macro(check_c_fortran_function_exists _func_base _result) string(TOLOWER "${_func_base}" _func_base_lower) string(TOUPPER "${_func_base}" _func_base_upper) set(${_result} FALSE) foreach(_func ${_func_base_lower}_;${_func_base_lower};${_func_base_lower}__;${_func_base_upper};${_func_base_upper}_) check_function_exists(${_func} _${_func}_found) if(_${_func}_found) set(${_result} ${_func}) break() else() # try appending c++ libs if depend on c++ runtime foreach(_cxxlib -lstdc++;-lc++) cmake_push_check_state() set(CMAKE_REQUIRED_LIBRARIES "${CMAKE_REQUIRED_LIBRARIES};${_cxxlib}") check_function_exists(${_func} _${_func}_found_with_${_cxxlib}) cmake_pop_check_state() if(_${_func}_found_with_${_cxxlib}) set(${_result} ${_func}) break() endif() endforeach() if(${_result}) break() endif() endif() endforeach() endmacro()madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/FindMKL.cmake0000644000175000017500000000747013717002132023611 0ustar mbamba# - Try to find MKL # Input variables: # MKL_ROOT_DIR - The MKL install directory # MKL_INCLUDE_DIR - The MKL include directory # MKL_LIBRARY - The MKL library directory # FORTRAN_INTEGER_SIZE - Set the integer size (4 or 8 bytes) # BLA_STATIC - Prefer to link against static lbraries # Output variables: # MKL_FOUND - System has MKL # MKL_INCLUDE_DIRS - The MKL include directories # MKL_LIBRARIES - The libraries needed to use MKL # MKL_VERSION - The version string for MKL if(NOT MKL_FOUND) # If the user did not specify an MKL root directory, check for the MKLROOT # environment variable or the presence of /opt/intel/mkl. if(NOT MKL_ROOT_DIR OR NOT DEFINED MKL_ROOT_DIR) if(EXISTS $ENV{MKLROOT}) set(MKL_ROOT_DIR "$ENV{MKLROOT}") elseif(EXISTS /opt/intel/mkl) set(MKL_ROOT_DIR /opt/intel/mkl) endif() endif() if(MKL_ROOT_DIR) set(MKL_INCLUDE_DIR ${MKL_ROOT_DIR}/include CACHE PATH "The include directory for MKL") # Set the MKL library directory if not specified by the user. if(CMAKE_SYSTEM_NAME MATCHES "Linux") set(MKL_LIBRARY ${MKL_ROOT_DIR}/lib/intel64 CACHE PATH "The library directory for MKL") else() set(MKL_LIBRARY ${MKL_ROOT_DIR}/lib CACHE PATH "The library directory for MKL") endif() endif() if(FORTRAN_INTEGER_SIZE EQUAL 4) set(MKL_INT_TYPE "lp64") elseif(FORTRAN_INTEGER_SIZE EQUAL 8) set(MKL_INT_TYPE "ilp64") else() set(MKL_INT_TYPE "lp64") endif() # There are no user specified components, but we use the component handling # mechanism to make sure we find all the required libraries. set(MKL_FIND_COMPONENTS mkl_intel_${MKL_INT_TYPE} mkl_core mkl_sequential) set(MKL_FIND_REQUIRED_mkl_intel_${MKL_INT_TYPE} TRUE) set(MKL_FIND_REQUIRED_mkl_core TRUE) set(MKL_FIND_REQUIRED_mkl_sequential TRUE) # Search for MKL header files find_path(MKL_INCLUDE_DIRS mkl.h HINTS ${MKL_INCLUDE_DIR}) # Get MKL version if(MKL_INCLUDE_DIRS) file(READ "${MKL_INCLUDE_DIRS}/mkl_version.h" _mkl_version_file) string(REGEX REPLACE ".*#define __INTEL_MKL__ ([0-9]+).*" "\\1" MKL_VERSION_MAJOR "${_mkl_version_file}") string(REGEX REPLACE ".*#define __INTEL_MKL_MINOR__ ([0-9]+).*" "\\1" MKL_VERSION_MINOR "${_mkl_version_file}") string(REGEX REPLACE ".*#define __INTEL_MKL_UPDATE__ ([0-9]+).*" "\\1" MKL_VERSION_UPDATE "${_mkl_version_file}") set(MKL_VERSION "${MKL_VERSION_MAJOR}.${MKL_VERSION_MINOR}.${MKL_VERSION_UPDATE}") unset(_mkl_version_header) endif() # Search for MKL libraries foreach(_lib ${MKL_FIND_COMPONENTS}) if(BLA_STATIC) find_library(MKL_${_lib}_LIBRARY ${CMAKE_STATIC_LIBRARY_PREFIX}${_lib}${CMAKE_STATIC_LIBRARY_SUFFIX} ${_lib} HINTS ${MKL_LIBRARY}) else() find_library(MKL_${_lib}_LIBRARY ${_lib} HINTS ${MKL_LIBRARY}) endif() if(MKL_${_lib}_LIBRARY) set(MKL_${_lib}_FOUND TRUE) list(APPEND MKL_LIBRARIESX ${MKL_${_lib}_LIBRARY}) else() set(MKL_${_lib}_FOUND FALSE) endif() endforeach() # Set LAPACK_LIBRARIES variable if MKL was found if(MKL_mkl_core_FOUND) set(MKL_FOUND TRUE) if(UNIX AND NOT APPLE AND BLA_STATIC) set(MKL_LIBRARIES -Wl,--start-group ${MKL_LIBRARIESX} -Wl,--end-group -lm -ldl CACHE STRING "The Intel MKL libraries") else() set(MKL_LIBRARIES ${MKL_LIBRARIESX} -lm -ldl CACHE STRING "The Intel MKL libraries") endif() endif() # handle the QUIETLY and REQUIRED arguments and set MKL_FOUND to TRUE # if all listed variables are TRUE find_package_handle_standard_args(MKL FOUND_VAR MKL_FOUND VERSION_VAR MKL_VERSION REQUIRED_VARS MKL_LIBRARIES MKL_INCLUDE_DIRS HANDLE_COMPONENTS) endif() madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/FindPapi.cmake0000644000175000017500000000315613717002132024054 0ustar mbamba# - Try to find Papi # Input variables: # PAPI_ROOT_DIR - The papi install directory # PAPI_INCLUDE_DIR - The papi include directory # PAPI_LIBRARY - The papi library directory # Output variables: # PAPI_FOUND - System has papi # PAPI_INCLUDE_DIRS - The papi include directories # PAPI_LIBRARIES - The libraries needed to use papi include(FindPackageHandleStandardArgs) if(NOT PAPI_FOUND) # Set default sarch paths for papi if(PAPI_ROOT_DIR) set(PAPI_INCLUDE_DIR ${PAPI_ROOT_DIR}/include CACHE PATH "The include directory for papi") if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND CMAKE_SYSTEM_NAME STREQUAL "Linux") set(PAPI_LIBRARY ${PAPI_ROOT_DIR}/lib64;${PAPI_ROOT_DIR}/lib CACHE PATH "The library directory for papi") else() set(PAPI_LIBRARY ${PAPI_ROOT_DIR}/lib CACHE PATH "The library directory for papi") endif() endif() find_path(PAPI_INCLUDE_DIRS NAMES papi.h HINTS ${PAPI_INCLUDE_DIR}) find_library(PAPI_papi_LIBRARIES papi HINTS ${PAPI_LIBRARY}) if(PAPI_INCLUDE_DIRS AND PAPI_papi_LIBRARY) add_library(papi UNKNOWN IMPORTED) set_target_properties(papi PROPERTIES IMPORTED_LOCATION "${PAPI_papi_LIBRARIES}" INTERFACE_INCLUDE_DIRECTORIES "${PAPI_INCLUDE_DIRS}") endif() set(PAPI_LIBRARIES papi) # handle the QUIETLY and REQUIRED arguments and set PAPI_FOUND to TRUE # if all listed variables are TRUE find_package_handle_standard_args(Papi FOUND_VAR PAPI_FOUND REQUIRED_VARS PAPI_LIBRARIES PAPI_INCLUDE_DIRS) mark_as_advanced(PAPI_INCLUDE_DIR PAPI_LIBRARY PAPI_INCLUDE_DIRS PAPI_LIBRARIES) endif()madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/FindGperftools.cmake0000644000175000017500000001526713717002132025315 0ustar mbamba# - Try to find Google performance tools (gperftools) # Input variables: # GPERFTOOLS_ROOT_DIR - The gperftools install directory; # if not set the GPERFTOOLS_DIR environment variable will be used # GPERFTOOLS_INCLUDE_DIR - The gperftools include directory # GPERFTOOLS_LIBRARY - The gperftools library directory # Components: profiler, and tcmalloc or tcmalloc_minimal # Output variables: # GPERFTOOLS_FOUND - System has gperftools # GPERFTOOLS_INCLUDE_DIRS - The gperftools include directories # GPERFTOOLS_LIBRARIES - The libraries needed to use gperftools # GPERFTOOLS_VERSION - The version string for gperftools include(FindPackageHandleStandardArgs) if(NOT DEFINED GPERFTOOLS_FOUND) # If not set already, set GPERFTOOLS_ROOT_DIR from environment if (DEFINED ENV{GPERFTOOLS_DIR} AND NOT DEFINED GPERFTOOLS_ROOT_DIR) set(GPERFTOOLS_ROOT_DIR $ENV{GPERFTOOLS_DIR}) endif() # Check to see if libunwind is required set(GPERFTOOLS_DISABLE_PROFILER FALSE) if((";${Gperftools_FIND_COMPONENTS};" MATCHES ";profiler;") AND (CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "BlueGeneQ" OR CMAKE_SYSTEM_NAME MATCHES "BlueGeneP") AND (CMAKE_SIZEOF_VOID_P EQUAL 8)) # Libunwind is required by profiler on this platform if(Gperftools_FIND_REQUIRED_profiler OR Gperftools_FIND_REQUIRED_tcmalloc_and_profiler) find_package(Libunwind 0.99 REQUIRED) else() find_package(Libunwind) if(NOT LIBUNWIND_FOUND OR LIBUNWIND_VERSION VERSION_LESS 0.99) set(GPERFTOOLS_DISABLE_PROFILER TRUE) endif() endif() endif() # Check for invalid components foreach(_comp ${Gperftools_FIND_COMPONENTS}) if((NOT _comp STREQUAL "tcmalloc_and_profiler") AND (NOT _comp STREQUAL "tcmalloc") AND (NOT _comp STREQUAL "tcmalloc_minimal") AND (NOT _comp STREQUAL "profiler")) message(FATAL_ERROR "Invalid component specified for Gperftools: ${_comp}") endif() endforeach() # Check for valid component combinations if(";${Gperftools_FIND_COMPONENTS};" MATCHES ";tcmalloc_and_profiler;" AND (";${Gperftools_FIND_COMPONENTS};" MATCHES ";tcmalloc;" OR ";${Gperftools_FIND_COMPONENTS};" MATCHES ";tcmalloc_minimal;" OR ";${Gperftools_FIND_COMPONENTS};" MATCHES ";profiler;")) message("ERROR: Invalid component selection for Gperftools: ${Gperftools_FIND_COMPONENTS}") message("ERROR: Gperftools cannot link both tcmalloc_and_profiler with the tcmalloc, tcmalloc_minimal, or profiler libraries") message(FATAL_ERROR "Gperftools component list is invalid") endif() if(";${Gperftools_FIND_COMPONENTS};" MATCHES ";tcmalloc;" AND ";${Gperftools_FIND_COMPONENTS};" MATCHES ";tcmalloc_minimal;") message("ERROR: Invalid component selection for Gperftools: ${Gperftools_FIND_COMPONENTS}") message("ERROR: Gperftools cannot link both tcmalloc and tcmalloc_minimal") message(FATAL_ERROR "Gperftools component list is invalid") endif() # Set default sarch paths for gperftools if(GPERFTOOLS_ROOT_DIR) set(GPERFTOOLS_INCLUDE_DIR ${GPERFTOOLS_ROOT_DIR}/include CACHE PATH "The include directory for gperftools") if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND CMAKE_SYSTEM_NAME STREQUAL "Linux") set(GPERFTOOLS_LIBRARY ${GPERFTOOLS_ROOT_DIR}/lib64;${GPERFTOOLS_ROOT_DIR}/lib CACHE PATH "The library directory for gperftools") else() set(GPERFTOOLS_LIBRARY ${GPERFTOOLS_ROOT_DIR}/lib CACHE PATH "The library directory for gperftools") endif() endif() find_path(GPERFTOOLS_INCLUDE_DIRS NAMES gperftools/malloc_extension.h HINTS ${GPERFTOOLS_INCLUDE_DIR}) # Search for component libraries foreach(_comp tcmalloc_and_profiler tcmalloc tcmalloc_minimal profiler) find_library(GPERFTOOLS_${_comp}_LIBRARY ${_comp} HINTS ${GPERFTOOLS_LIBRARY}) if(GPERFTOOLS_${_comp}_LIBRARY) set(GPERFTOOLS_${_comp}_FOUND TRUE) else() set(GPERFTOOLS_${_comp}_FOUND FALSE) endif() # Exclude profiler from the found list if libunwind is required but not found if(GPERFTOOLS_${_comp}_FOUND AND ${_comp} MATCHES "profiler" AND GPERFTOOLS_DISABLE_PROFILER) set(GPERFTOOLS_${_comp}_FOUND FALSE) set(GPERFTOOLS_${_comp}_LIBRARY "GPERFTOOLS_${_comp}_LIBRARY-NOTFOUND") message("WARNING: Gperftools '${_comp}' requires libunwind 0.99 or later.") message("WARNING: Gperftools '${_comp}' will be disabled.") endif() if(";${Gperftools_FIND_COMPONENTS};" MATCHES ";${_comp};" AND GPERFTOOLS_${_comp}_FOUND) list(APPEND GPERFTOOLS_LIBRARIES "${GPERFTOOLS_${_comp}_LIBRARY}") endif() endforeach() # Set gperftools libraries if not set based on component list if(NOT GPERFTOOLS_LIBRARIES) if(GPERFTOOLS_tcmalloc_and_profiler_FOUND) set(GPERFTOOLS_LIBRARIES "${GPERFTOOLS_tcmalloc_and_profiler_LIBRARY}") elseif(GPERFTOOLS_tcmalloc_FOUND AND GPERFTOOLS_profiler_FOUND) set(GPERFTOOLS_LIBRARIES "${GPERFTOOLS_tcmalloc_LIBRARY}" "${GPERFTOOLS_profiler_LIBRARY}") elseif(GPERFTOOLS_profiler_FOUND) set(GPERFTOOLS_LIBRARIES "${GPERFTOOLS_profiler_LIBRARY}") elseif(GPERFTOOLS_tcmalloc_FOUND) set(GPERFTOOLS_LIBRARIES "${GPERFTOOLS_tcmalloc_LIBRARY}") elseif(GPERFTOOLS_tcmalloc_minimal_FOUND) set(GPERFTOOLS_LIBRARIES "${GPERFTOOLS_tcmalloc_minimal_LIBRARY}") endif() endif() # handle the QUIETLY and REQUIRED arguments and set GPERFTOOLS_FOUND to TRUE # if all listed variables are TRUE find_package_handle_standard_args(Gperftools FOUND_VAR GPERFTOOLS_FOUND REQUIRED_VARS GPERFTOOLS_LIBRARIES GPERFTOOLS_INCLUDE_DIRS HANDLE_COMPONENTS) mark_as_advanced(GPERFTOOLS_INCLUDE_DIR GPERFTOOLS_LIBRARY GPERFTOOLS_INCLUDE_DIRS GPERFTOOLS_LIBRARIES) # Add linker flags that instruct the compiler to exclude built in memory # allocation functions. This works for GNU, Intel, and Clang. Other compilers # may need to be added in the future. if(GPERFTOOLS_LIBRARIES MATCHES "tcmalloc") if((CMAKE_CXX_COMPILER_ID MATCHES "GNU") OR (CMAKE_CXX_COMPILER_ID MATCHES "AppleClang") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang") OR ((CMAKE_CXX_COMPILER_ID MATCHES "Intel") AND (NOT CMAKE_CXX_PLATFORM_ID MATCHES "Windows"))) list(APPEND GPERFTOOLS_LIBRARIES "-fno-builtin-malloc" "-fno-builtin-calloc" "-fno-builtin-realloc" "-fno-builtin-free") endif() endif() # Add libunwind flags to gperftools if the profiler is being used if(GPERFTOOLS_LIBRARIES MATCHES "profiler" AND LIBUNWIND_FOUND) list(APPEND GPERFTOOLS_INCLUDE_DIRS "${LIBUNWIND_INCLUDE_DIRS}") list(APPEND GPERFTOOLS_LIBRARIES "${LIBUNWIND_LIBRARIES}") endif() unset(GPERFTOOLS_DISABLE_PROFILER) endif() madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/FindLibunwind.cmake0000644000175000017500000000524213717002132025114 0ustar mbamba# - Try to find Libunwind # Input variables: # LIBUNWIND_ROOT_DIR - The libunwind install directory; # if not set the LIBUNWIND_DIR environment variable will be used # LIBUNWIND_INCLUDE_DIR - The libunwind include directory # LIBUNWIND_LIBRARY - The libunwind library directory # Output variables: # LIBUNWIND_FOUND - System has libunwind # LIBUNWIND_INCLUDE_DIRS - The libunwind include directories # LIBUNWIND_LIBRARIES - The libraries needed to use libunwind # LIBUNWIND_VERSION - The version string for libunwind include(FindPackageHandleStandardArgs) if(NOT DEFINED LIBUNWIND_FOUND) # if not set already, set LIBUNWIND_ROOT_DIR from environment if (DEFINED ENV{LIBUNWIND_DIR} AND NOT DEFINED LIBUNWIND_ROOT_DIR) set(LIBUNWIND_ROOT_DIR $ENV{LIBUNWIND_DIR}) endif() # Set default sarch paths for libunwind if(LIBUNWIND_ROOT_DIR) set(LIBUNWIND_INCLUDE_DIR ${LIBUNWIND_ROOT_DIR}/include CACHE PATH "The include directory for libunwind") if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND CMAKE_SYSTEM_NAME STREQUAL "Linux") set(LIBUNWIND_LIBRARY ${LIBUNWIND_ROOT_DIR}/lib64;${LIBUNWIND_ROOT_DIR}/lib CACHE PATH "The library directory for libunwind") else() set(LIBUNWIND_LIBRARY ${LIBUNWIND_ROOT_DIR}/lib CACHE PATH "The library directory for libunwind") endif() endif() find_path(LIBUNWIND_INCLUDE_DIRS NAMES libunwind.h HINTS ${LIBUNWIND_INCLUDE_DIR}) find_library(LIBUNWIND_LIBRARIES unwind HINTS ${LIBUNWIND_LIBRARY}) # Get libunwind version if(EXISTS "${LIBUNWIND_INCLUDE_DIRS}/libunwind-common.h") file(READ "${LIBUNWIND_INCLUDE_DIRS}/libunwind-common.h" _libunwind_version_header) string(REGEX REPLACE ".*define[ \t]+UNW_VERSION_MAJOR[ \t]+([0-9]+).*" "\\1" LIBUNWIND_MAJOR_VERSION "${_libunwind_version_header}") string(REGEX REPLACE ".*define[ \t]+UNW_VERSION_MINOR[ \t]+([0-9]+).*" "\\1" LIBUNWIND_MINOR_VERSION "${_libunwind_version_header}") string(REGEX REPLACE ".*define[ \t]+UNW_VERSION_EXTRA[ \t]+([0-9]+).*" "\\1" LIBUNWIND_MICRO_VERSION "${_libunwind_version_header}") set(LIBUNWIND_VERSION "${LIBUNWIND_MAJOR_VERSION}.${LIBUNWIND_MINOR_VERSION}.${LIBUNWIND_MICRO_VERSION}") unset(_libunwind_version_header) endif() # handle the QUIETLY and REQUIRED arguments and set LIBUNWIND_FOUND to TRUE # if all listed variables are TRUE find_package_handle_standard_args(Libunwind FOUND_VAR LIBUNWIND_FOUND VERSION_VAR LIBUNWIND_VERSION REQUIRED_VARS LIBUNWIND_LIBRARIES LIBUNWIND_INCLUDE_DIRS) mark_as_advanced(LIBUNWIND_INCLUDE_DIR LIBUNWIND_LIBRARY LIBUNWIND_INCLUDE_DIRS LIBUNWIND_LIBRARIES) endif()madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/CopyTargetProperties.cmake0000644000175000017500000000243513717002132026517 0ustar mbambamacro(copy_target_properties _intarget _outtarget _props) foreach(_prop ${_props}) get_property(_prop_set TARGET ${_intarget} PROPERTY ${_prop} SET) get_property(_prop_value TARGET ${_intarget} PROPERTY ${_prop}) # message("${_intarget}:${_prop} SET = '${_prop_set}'") # message("${_intarget}:${_prop} = '${_prop_value}'") if(_prop_set) set_property(TARGET ${_outtarget} PROPERTY ${_prop} "${_prop_value}") # get_target_property(_new_value ${_outtarget} ${_prop}) # message("${_outtarget}:${_prop} = '${_new_value}'") endif() unset(_prop_set) unset(_prop_value) endforeach() endmacro() macro(append_target_properties _intarget _outtarget _props) foreach(_prop ${_props}) get_property(_prop_set TARGET ${_intarget} PROPERTY ${_prop} SET) get_property(_prop_value TARGET ${_intarget} PROPERTY ${_prop}) # message("${_intarget}:${_prop} SET = '${_prop_set}'") # message("${_intarget}:${_prop} = '${_prop_value}'") if(_prop_set) set_property(TARGET ${_outtarget} APPEND PROPERTY ${_prop} "${_prop_value}") # get_target_property(_new_value ${_outtarget} ${_prop}) # message("${_outtarget}:${_prop} = '${_new_value}'") endif() unset(_prop_set) unset(_prop_value) endforeach() endmacro()madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/AddUnittests.cmake0000644000175000017500000000212513717002132024770 0ustar mbambamacro(add_unittests _component _sources _libs) # Add targets and for world_unittests add_custom_target_subproject(madness ${_component}_unittests) add_dependencies(unittests-madness ${_component}_unittests-madness) # Add a test that builds the unit tests add_test(build_${_component}_unittests "${CMAKE_COMMAND}" --build ${PROJECT_BINARY_DIR} --target ${_component}_unittests-madness) foreach(_source ${_sources}) # Get the test name (the file name of the first source) string(REGEX MATCH "[A-Za-z_][A-Za-z0-9_]*\\.cc" _test_source "${_source}") string(REGEX MATCHALL "[A-Za-z0-9_\\.\\$<:>]+" _source_list "${_source}") get_filename_component(_test "${_test_source}" NAME_WE) # Create test executable add_mad_executable(${_test} "${_source_list}" "${_libs}") # Add the test and set dependencies add_test(NAME ${_component}-${_test} COMMAND ${_test}) add_dependencies(${_component}_unittests-madness ${_test}) set_tests_properties(${_component}-${_test} PROPERTIES DEPENDS build_${_component}_unittests) endforeach() endmacro()madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/AppendFlags.cmake0000644000175000017500000000027513717002132024545 0ustar mbambamacro(append_flags _flags _append_flag) string(STRIP "${_append_flag}" _append_flag ) set(${_flags} "${${_flags}} ${_append_flag}") string(STRIP "${${_flags}}" ${_flags}) endmacro()madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/AddMADExecutable.cmake0000644000175000017500000000026313717002132025372 0ustar mbambamacro(add_mad_executable _name _source_files _libs) add_executable(${_name} EXCLUDE_FROM_ALL ${_source_files}) target_link_libraries(${_name} PRIVATE "${_libs}") endmacro() ././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootmadness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/ConvertIncludesListToCompilerArgs.cmakemadness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/ConvertIncludesListToCompilerArgs.cma0000644000175000017500000000233313717002132030614 0ustar mbamba# # This file is a part of TiledArray. # Copyright (C) 2013 Virginia Tech # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . # # Justus Calvin # Department of Chemistry, Virginia Tech # # ConvertIncludesListToCompileArgs.cmake # Sep 4, 2013 # # # converts a list of include paths (second argument, don't forget to enclose the # list in quotes) into a list of command-line parameters to the compiler/. # macro(convert_incs_to_compargs _args _inc_paths ) # transform library list into compiler args # Add include paths to _args foreach(_inc_path ${_inc_paths}) set(${_args} "${${_args}} -I${_inc_path}") endforeach() endmacro() madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/AddMADLibrary.cmake0000644000175000017500000001372613717002132024725 0ustar mbambamacro(add_mad_library _name _source_files _header_files _dep_mad_comp _include_dir) if (NOT ${_source_files}) # no sources given? use add_mad_hdr_library message (FATAL_ERROR "add_mad_library: no sources given; probably want add_mad_hdr_library instead") endif() add_library(MAD${_name}-obj OBJECT ${${_source_files}} ${${_header_files}}) # make library target(s) # if building shared library, build static as well using the same objects add_library(MAD${_name} $) add_library(${_name} ALIAS MAD${_name}) add_dependencies(madness-libraries ${_name}) if(BUILD_SHARED_LIBS) if (NOT DEFINED CMAKE_POSITION_INDEPENDENT_CODE) set_target_properties(MAD${_name}-obj PROPERTIES POSITION_INDEPENDENT_CODE TRUE) # this is the default anyway, but produce a warning just in case message(WARNING "building shared libraries, setting default for POSITION_INDEPENDENT_CODE to true (set CMAKE_POSITION_INDEPENDENT_CODE to change the default)") endif() endif(BUILD_SHARED_LIBS) # Pass the private MAD${_name} compile flags to MAD${_name}-obj target_compile_definitions(MAD${_name}-obj PRIVATE $) target_include_directories(MAD${_name}-obj PRIVATE $) target_compile_options(MAD${_name}-obj PRIVATE $) # target-common setup add_custom_target(install-madness-${_name} COMMAND ${CMAKE_COMMAND} -DCOMPONENT=${_name} -P ${PROJECT_BINARY_DIR}/cmake_install.cmake COMMENT "Installing ${_name} library components" USES_TERMINAL) add_dependencies(install-madness-${_name} install-madness-common) add_dependencies(install-madness-libraries install-madness-${_name}) foreach(_dep ${_dep_mad_comp}) if(TARGET install-madness-${_dep}) add_dependencies(install-madness-${_name} install-madness-${_dep}) endif() endforeach() # configure each target set(targetname MAD${_name}) target_include_directories(${targetname} PUBLIC $) set_target_properties(${targetname} PROPERTIES PUBLIC_HEADER "${${_header_files}}") # Add library to the list of installed components install(TARGETS ${targetname} EXPORT madness COMPONENT ${_name} PUBLIC_HEADER DESTINATION "${MADNESS_INSTALL_INCLUDEDIR}/${_include_dir}" LIBRARY DESTINATION "${MADNESS_INSTALL_LIBDIR}" ARCHIVE DESTINATION "${MADNESS_INSTALL_LIBDIR}" INCLUDES DESTINATION "${MADNESS_INSTALL_INCLUDEDIR}") # Create a target to install the component add_dependencies(install-madness-${_name} ${targetname}) set(LINK_FLAGS "") foreach(_dep ${_dep_mad_comp}) if (${_dep}_is_mad_hdr_lib) set(deptargetname MAD${_dep}) else(${_dep}_is_mad_hdr_lib) set(deptargetname MAD${_dep}) endif(${_dep}_is_mad_hdr_lib) if(TARGET ${deptargetname}) target_compile_definitions(${targetname} PUBLIC $) target_include_directories(${targetname} PUBLIC $) target_compile_options(${targetname} PUBLIC $) if (${_dep}_is_mad_hdr_lib) target_link_libraries(${targetname} INTERFACE ${_dep}) else() target_link_libraries(${targetname} PUBLIC ${deptargetname}) endif() # import LINK_FLAGS from dependent get_property(deptargetname_LINK_FLAGS_SET TARGET ${deptargetname} PROPERTY LINK_FLAGS SET) if (deptargetname_LINK_FLAGS_SET) get_property(deptargetname_LINK_FLAGS TARGET ${deptargetname} PROPERTY LINK_FLAGS) set(LINK_FLAGS "${LINK_FLAGS} ${deptargetname_LINK_FLAGS}") endif () endif() endforeach(_dep ${_dep_mad_comp}) set_target_properties(${targetname} PROPERTIES LINK_FLAGS "${LINK_FLAGS}") target_compile_features(${targetname} INTERFACE "cxx_std_${CMAKE_CXX_STANDARD}") endmacro() macro(add_mad_hdr_library _name _header_files _dep_mad_comp _include_dir) message (STATUS "in add_mad_hdr_library(${_name})") # make INTERFACE library add_library(MAD${_name} INTERFACE) # Add target dependencies add_library(${_name} ALIAS MAD${_name}) add_dependencies(libraries-madness MAD${_name}) target_include_directories(MAD${_name} INTERFACE $ $ ) # Add library to the list of installed components install(TARGETS MAD${_name} EXPORT madness COMPONENT ${_name}) # Create a target to install the component add_custom_target(install-madness-${_name} COMMAND ${CMAKE_COMMAND} -DCOMPONENT=${_name} -P ${PROJECT_BINARY_DIR}/cmake_install.cmake COMMENT "Installing ${_name} library components" USES_TERMINAL) add_dependencies(install-madness-${_name} MAD${_name}) add_dependencies(install-madness-libraries install-madness-${_name}) foreach(_dep ${_dep_mad_comp}) if(TARGET install-madness-${_dep}) add_dependencies(install-madness-${_name} install-madness-${_dep}) endif() if(TARGET ${_dep}) target_compile_definitions(MAD${_name} PUBLIC $) target_include_directories(MAD${_name} PUBLIC $) target_compile_options(MAD${_name} PUBLIC $) if (${_dep}_is_mad_hdr_lib) target_link_libraries(MAD${_name} INTERFACE ${_dep}) else() target_link_libraries(MAD${_name} PUBLIC ${_dep}) endif() endif() endforeach() target_compile_features(MAD${_name} INTERFACE "cxx_std_${CMAKE_CXX_STANDARD}") set(${_name}_is_mad_hdr_lib TRUE) endmacro() madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/EchoTargetProperty.cmake0000644000175000017500000002412713717002132026155 0ustar mbambafunction(echo_target_property tgt prop) # v for value, d for defined, s for set get_property(s TARGET ${tgt} PROPERTY ${prop} SET) # only produce output for values that are set if(s) get_property(v TARGET ${tgt} PROPERTY ${prop}) get_property(d TARGET ${tgt} PROPERTY ${prop} DEFINED) message("tgt='${tgt}' prop='${prop}'") message(" value='${v}'") message(" defined='${d}'") message(" set='${s}'") message("") endif() endfunction() function(echo_target tgt) if(NOT TARGET ${tgt}) message("There is no target named '${tgt}'") return() endif() set(props ADDITIONAL_CLEAN_FILES AIX_EXPORT_ALL_SYMBOLS ALIASED_TARGET ANDROID_ANT_ADDITIONAL_OPTIONS ANDROID_API ANDROID_API_MIN ANDROID_ARCH ANDROID_ASSETS_DIRECTORIES ANDROID_GUI ANDROID_JAR_DEPENDENCIES ANDROID_JAR_DIRECTORIES ANDROID_JAVA_SOURCE_DIR ANDROID_NATIVE_LIB_DEPENDENCIES ANDROID_NATIVE_LIB_DIRECTORIES ANDROID_PROCESS_MAX ANDROID_PROGUARD ANDROID_PROGUARD_CONFIG_PATH ANDROID_SECURE_PROPS_PATH ANDROID_SKIP_ANT_STEP ANDROID_STL_TYPE ARCHIVE_OUTPUT_DIRECTORY_ ARCHIVE_OUTPUT_DIRECTORY ARCHIVE_OUTPUT_NAME_ ARCHIVE_OUTPUT_NAME AUTOGEN_BUILD_DIR AUTOGEN_ORIGIN_DEPENDS AUTOGEN_PARALLEL AUTOGEN_TARGET_DEPENDS AUTOMOC AUTOMOC_COMPILER_PREDEFINES AUTOMOC_DEPEND_FILTERS AUTOMOC_EXECUTABLE AUTOMOC_MACRO_NAMES AUTOMOC_MOC_OPTIONS AUTOMOC_PATH_PREFIX AUTORCC AUTORCC_EXECUTABLE AUTORCC_OPTIONS AUTOUIC AUTOUIC_EXECUTABLE AUTOUIC_OPTIONS AUTOUIC_SEARCH_PATHS BINARY_DIR BUILD_RPATH BUILD_RPATH_USE_ORIGIN BUILD_WITH_INSTALL_NAME_DIR BUILD_WITH_INSTALL_RPATH BUNDLE_EXTENSION BUNDLE C_EXTENSIONS C_STANDARD C_STANDARD_REQUIRED COMMON_LANGUAGE_RUNTIME COMPATIBLE_INTERFACE_BOOL COMPATIBLE_INTERFACE_NUMBER_MAX COMPATIBLE_INTERFACE_NUMBER_MIN COMPATIBLE_INTERFACE_STRING COMPILE_DEFINITIONS COMPILE_FEATURES COMPILE_FLAGS COMPILE_OPTIONS COMPILE_PDB_NAME COMPILE_PDB_NAME_ COMPILE_PDB_OUTPUT_DIRECTORY COMPILE_PDB_OUTPUT_DIRECTORY_ _OUTPUT_NAME _POSTFIX CROSSCOMPILING_EMULATOR CUDA_PTX_COMPILATION CUDA_SEPARABLE_COMPILATION CUDA_RESOLVE_DEVICE_SYMBOLS CUDA_RUNTIME_LIBRARY CUDA_EXTENSIONS CUDA_STANDARD CUDA_STANDARD_REQUIRED CXX_EXTENSIONS CXX_STANDARD CXX_STANDARD_REQUIRED DEBUG_POSTFIX DEFINE_SYMBOL DEPLOYMENT_REMOTE_DIRECTORY DEPLOYMENT_ADDITIONAL_FILES DEPRECATION DISABLE_PRECOMPILE_HEADERS DOTNET_TARGET_FRAMEWORK DOTNET_TARGET_FRAMEWORK_VERSION EchoString ENABLE_EXPORTS EXCLUDE_FROM_ALL EXCLUDE_FROM_DEFAULT_BUILD_ EXCLUDE_FROM_DEFAULT_BUILD EXPORT_NAME EXPORT_PROPERTIES FOLDER Fortran_FORMAT Fortran_MODULE_DIRECTORY FRAMEWORK FRAMEWORK_VERSION GENERATOR_FILE_NAME GHS_INTEGRITY_APP GHS_NO_SOURCE_GROUP_FILE GNUtoMS HAS_CXX IMPLICIT_DEPENDS_INCLUDE_TRANSFORM IMPORTED_COMMON_LANGUAGE_RUNTIME IMPORTED_CONFIGURATIONS IMPORTED_GLOBAL IMPORTED_IMPLIB_ IMPORTED_IMPLIB IMPORTED_LIBNAME_ IMPORTED_LIBNAME IMPORTED_LINK_DEPENDENT_LIBRARIES_ IMPORTED_LINK_DEPENDENT_LIBRARIES IMPORTED_LINK_INTERFACE_LANGUAGES_ IMPORTED_LINK_INTERFACE_LANGUAGES IMPORTED_LINK_INTERFACE_LIBRARIES_ IMPORTED_LINK_INTERFACE_LIBRARIES IMPORTED_LINK_INTERFACE_MULTIPLICITY_ IMPORTED_LINK_INTERFACE_MULTIPLICITY IMPORTED_LOCATION_ IMPORTED_LOCATION IMPORTED_NO_SONAME_ IMPORTED_NO_SONAME IMPORTED_OBJECTS_ IMPORTED_OBJECTS IMPORTED IMPORTED_SONAME_ IMPORTED_SONAME IMPORT_PREFIX IMPORT_SUFFIX INCLUDE_DIRECTORIES INSTALL_NAME_DIR INSTALL_REMOVE_ENVIRONMENT_RPATH INSTALL_RPATH INSTALL_RPATH_USE_LINK_PATH INTERFACE_AUTOUIC_OPTIONS INTERFACE_COMPILE_DEFINITIONS INTERFACE_COMPILE_FEATURES INTERFACE_COMPILE_OPTIONS INTERFACE_INCLUDE_DIRECTORIES INTERFACE_LINK_DEPENDS INTERFACE_LINK_DIRECTORIES INTERFACE_LINK_LIBRARIES INTERFACE_LINK_OPTIONS INTERFACE_PRECOMPILE_HEADERS INTERFACE_POSITION_INDEPENDENT_CODE INTERFACE_SOURCES INTERFACE_SYSTEM_INCLUDE_DIRECTORIES INTERPROCEDURAL_OPTIMIZATION_ INTERPROCEDURAL_OPTIMIZATION IOS_INSTALL_COMBINED JOB_POOL_COMPILE JOB_POOL_LINK JOB_POOL_PRECOMPILE_HEADER LABELS _CLANG_TIDY _COMPILER_LAUNCHER _CPPCHECK _CPPLINT _INCLUDE_WHAT_YOU_USE _VISIBILITY_PRESET LIBRARY_OUTPUT_DIRECTORY_ LIBRARY_OUTPUT_DIRECTORY LIBRARY_OUTPUT_NAME_ LIBRARY_OUTPUT_NAME LINK_DEPENDS_NO_SHARED LINK_DEPENDS LINKER_LANGUAGE LINK_DIRECTORIES LINK_FLAGS_ LINK_FLAGS LINK_INTERFACE_LIBRARIES_ LINK_INTERFACE_LIBRARIES LINK_INTERFACE_MULTIPLICITY_ LINK_INTERFACE_MULTIPLICITY LINK_LIBRARIES LINK_OPTIONS LINK_SEARCH_END_STATIC LINK_SEARCH_START_STATIC LINK_WHAT_YOU_USE LOCATION_ LOCATION MACHO_COMPATIBILITY_VERSION MACHO_CURRENT_VERSION MACOSX_BUNDLE_INFO_PLIST MACOSX_BUNDLE MACOSX_FRAMEWORK_INFO_PLIST MACOSX_RPATH MANUALLY_ADDED_DEPENDENCIES MAP_IMPORTED_CONFIG_ MSVC_RUNTIME_LIBRARY NAME NO_SONAME NO_SYSTEM_FROM_IMPORTED OBJC_EXTENSIONS OBJC_STANDARD OBJC_STANDARD_REQUIRED OBJCXX_EXTENSIONS OBJCXX_STANDARD OBJCXX_STANDARD_REQUIRED OSX_ARCHITECTURES_ OSX_ARCHITECTURES OUTPUT_NAME_ OUTPUT_NAME PDB_NAME_ PDB_NAME PDB_OUTPUT_DIRECTORY_ PDB_OUTPUT_DIRECTORY POSITION_INDEPENDENT_CODE PRECOMPILE_HEADERS PRECOMPILE_HEADERS_REUSE_FROM PREFIX PRIVATE_HEADER PROJECT_LABEL PUBLIC_HEADER RESOURCE RULE_LAUNCH_COMPILE RULE_LAUNCH_CUSTOM RULE_LAUNCH_LINK RUNTIME_OUTPUT_DIRECTORY_ RUNTIME_OUTPUT_DIRECTORY RUNTIME_OUTPUT_NAME_ RUNTIME_OUTPUT_NAME SKIP_BUILD_RPATH SOURCE_DIR SOURCES SOVERSION STATIC_LIBRARY_FLAGS_ STATIC_LIBRARY_FLAGS STATIC_LIBRARY_OPTIONS SUFFIX Swift_DEPENDENCIES_FILE Swift_LANGUAGE_VERSION Swift_MODULE_DIRECTORY Swift_MODULE_NAME TYPE UNITY_BUILD UNITY_BUILD_BATCH_SIZE UNITY_BUILD_CODE_AFTER_INCLUDE UNITY_BUILD_CODE_BEFORE_INCLUDE VERSION VISIBILITY_INLINES_HIDDEN VS_CONFIGURATION_TYPE VS_DEBUGGER_COMMAND VS_DEBUGGER_COMMAND_ARGUMENTS VS_DEBUGGER_ENVIRONMENT VS_DEBUGGER_WORKING_DIRECTORY VS_DESKTOP_EXTENSIONS_VERSION VS_DOTNET_REFERENCE_ VS_DOTNET_REFERENCEPROP__TAG_ VS_DOTNET_REFERENCES VS_DOTNET_REFERENCES_COPY_LOCAL VS_DOTNET_TARGET_FRAMEWORK_VERSION VS_DOTNET_DOCUMENTATION_FILE VS_DPI_AWARE VS_GLOBAL_KEYWORD VS_GLOBAL_PROJECT_TYPES VS_GLOBAL_ROOTNAMESPACE VS_GLOBAL_ VS_IOT_EXTENSIONS_VERSION VS_IOT_STARTUP_TASK VS_JUST_MY_CODE_DEBUGGING VS_KEYWORD VS_MOBILE_EXTENSIONS_VERSION VS_NO_SOLUTION_DEPLOY VS_PACKAGE_REFERENCES VS_PROJECT_IMPORT VS_SCC_AUXPATH VS_SCC_LOCALPATH VS_SCC_PROJECTNAME VS_SCC_PROVIDER VS_SDK_REFERENCES VS_USER_PROPS VS_WINDOWS_TARGET_PLATFORM_MIN_VERSION VS_WINRT_COMPONENT VS_WINRT_EXTENSIONS VS_WINRT_REFERENCES WIN32_EXECUTABLE WINDOWS_EXPORT_ALL_SYMBOLS XCODE_ATTRIBUTE_ XCODE_EXPLICIT_FILE_TYPE XCODE_GENERATE_SCHEME XCODE_PRODUCT_TYPE XCODE_SCHEME_ADDRESS_SANITIZER XCODE_SCHEME_ADDRESS_SANITIZER_USE_AFTER_RETURN XCODE_SCHEME_ARGUMENTS XCODE_SCHEME_DEBUG_AS_ROOT XCODE_SCHEME_DEBUG_DOCUMENT_VERSIONING XCODE_SCHEME_DISABLE_MAIN_THREAD_CHECKER XCODE_SCHEME_DYNAMIC_LIBRARY_LOADS XCODE_SCHEME_DYNAMIC_LINKER_API_USAGE XCODE_SCHEME_ENVIRONMENT XCODE_SCHEME_EXECUTABLE XCODE_SCHEME_GUARD_MALLOC XCODE_SCHEME_MAIN_THREAD_CHECKER_STOP XCODE_SCHEME_MALLOC_GUARD_EDGES XCODE_SCHEME_MALLOC_SCRIBBLE XCODE_SCHEME_MALLOC_STACK XCODE_SCHEME_THREAD_SANITIZER XCODE_SCHEME_THREAD_SANITIZER_STOP XCODE_SCHEME_UNDEFINED_BEHAVIOUR_SANITIZER XCODE_SCHEME_UNDEFINED_BEHAVIOUR_SANITIZER_STOP XCODE_SCHEME_WORKING_DIRECTORY XCODE_SCHEME_ZOMBIE_OBJECTS XCTEST ) # build whitelist by filtering down from CMAKE_PROPERTY_LIST in case cmake is # a different version, and one of our hardcoded whitelisted properties # doesn't exist! unset(whitelisted_props) foreach(prop ${props}) if(prop MATCHES "^(INTERFACE|[_a-z]|IMPORTED_LIBNAME_|MAP_IMPORTED_CONFIG_)|^(COMPATIBLE_INTERFACE_(BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|EXPORT_NAME|IMPORTED(_GLOBAL|_CONFIGURATIONS|_LIBNAME)?|NAME|TYPE|NO_SYSTEM_FROM_IMPORTED)$") list(APPEND whitelisted_props ${prop}) endif() endforeach(prop) message("======================== ${tgt} ========================") get_target_property(tgt_type ${tgt} TYPE) if (tgt_type STREQUAL "INTERFACE_LIBRARY") set(tgt_props_list "${whitelisted_props}") else() set(tgt_props_list "${props}") endif() foreach(p ${tgt_props_list}) echo_target_property("${tgt}" "${p}") endforeach() message("") endfunction() function(echo_targets) set(tgts ${ARGV}) foreach(t ${tgts}) echo_target("${t}") endforeach() endfunction() madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/AddCustomTargetSubproject.cmake0000644000175000017500000000355213717002132027455 0ustar mbamba# Copyright 2020 Eduard F Valeyev # Distributed under the OSI-approved BSD 3-Clause License. # See https://opensource.org/licenses/BSD-3-Clause for details. # copy of https://github.com/BTAS/BTAS/blob/master/cmake/modules/AddCustomTargetSubproject.cmake # # add_custom_target_subproject(proj X ...) defines custom target X-proj and # - if target X already exists, makes it depend on X-proj # - else creates target X depending on X-proj # # use case: if custom target names (e.g. "check", "doc", etc.) clash # with other project's target when used as a subproject # # example: add_custom_target_subproject(myproject check USES_TERMINAL COMMAND ${CMAKE_CTEST_COMMAND} -V) # macro(add_custom_target_subproject _subproj _name) set(extra_args "${ARGN}") add_custom_target(${_name}-${_subproj} ${extra_args}) # does the newly-created target get compiled by default? list(FIND extra_args "ALL" extra_args_has_all) if (NOT (extra_args_has_all EQUAL -1)) set (target_built_by_default ON) endif() if (TARGET ${_name}) # is existing target ${_name} also compiled by default? # warn if not, but this project's target is since that # may indicate inconsistent creation of generic targets get_target_property(supertarget_not_built_by_default ${_name} EXCLUDE_FROM_ALL) if (target_built_by_default AND supertarget_not_built_by_default) message(WARNING "Created target ${_name}-${_subproj} is built by default but \"super\"-target ${_name} is not; perhaps it should be?") endif() add_dependencies(${_name} ${_name}-${_subproj}) else (TARGET ${_name}) # use ALL if given if (target_built_by_default) add_custom_target(${_name} ALL DEPENDS ${_name}-${_subproj}) else (target_built_by_default) add_custom_target(${_name} DEPENDS ${_name}-${_subproj}) endif(target_built_by_default) endif (TARGET ${_name}) endmacro() madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/modules/FindPCM.cmake0000644000175000017500000000366213717002132023604 0ustar mbamba# - Try to find PCM # Input variables: # PCM_ROOT_DIR - The pcm install directory # PCM_INCLUDE_DIR - The pcm include directory | optional, else determined from PCM_ROOT_DIR, dont set PCM_ROOT_DIR if you want to use this # PCM_LIBRARY - The pcm library directory | optional, else determined from PCM_ROOT_DIR, ... # Output variables: # PCM_FOUND - System has pcm # PCM_INCLUDE_DIRS - The pcm include directories # PCM_LIBRARIES - The libraries needed to use pcm # PCM_VERSION - The version string for pcm | currently unused include(FindPackageHandleStandardArgs) if(NOT PCM_FOUND) # define include and library directories based on root directory if(PCM_ROOT_DIR) set(PCM_INCLUDE_DIR ${PCM_ROOT_DIR}/include/ CACHE PATH "The include directory for PCM") if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND CMAKE_SYSTEM_NAME STREQUAL "Linux") set(PCM_LIBRARY ${PCM_ROOT_DIR}/lib;${PCM_ROOT_DIR}/lib64 CACHE PATH "Linker Flags for PCM Library") else() set(PCM_LIBRARY ${PCM_ROOT_DIR}/lib CACHE PATH "Linker Flags for PCM Library") endif() endif() find_path(PCM_INCLUDE_DIRS NAMES PCMSolver/pcmsolver.h HINTS ${PCM_INCLUDE_DIR}) find_library(PCM_LIBRARIES NAMES pcm HINTS ${PCM_LIBRARY}) # Get PCM version # if(PCM_INCLUDE_DIRS) # file(READ "${PCM_INCLUDE_DIRS}/GitInfo.hpp" _PCM_version_header) # string(REGEX MATCH "define[ \t]+PCM_VERSION[ \t]+\\\"([0-9\\.]+)\\\"" # PCM_VERSION "${_PCM_version_header}") # string(REGEX MATCH "([0-9\\.]+)" PCM_VERSION "${PCM_VERSION}") # unset(_PCM_version_header) # endif() # handle the QUIETLY and REQUIRED arguments and set PCM_FOUND to TRUE # if all listed variables are TRUE find_package_handle_standard_args(PCM FOUND_VAR PCM_FOUND VERSION_VAR PCM_VERSION REQUIRED_VARS PCM_LIBRARIES PCM_INCLUDE_DIRS) mark_as_advanced(PCM_INCLUDE_DIR PCM_LIBRARY PCM_INCLUDE_DIRS PCM_LIBRARIES) endif() madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/git_version.cmake0000644000175000017500000000353413717002132023242 0ustar mbambacmake_minimum_required(VERSION 3.0.0) message(STATUS "Resolving GIT Version") set(_build_version "unknown") find_package(Git) if(GIT_FOUND) execute_process( COMMAND ${GIT_EXECUTABLE} rev-parse HEAD WORKING_DIRECTORY "${local_dir}" OUTPUT_VARIABLE _build_version_only ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE ) execute_process( COMMAND ${GIT_EXECUTABLE} diff --quiet WORKING_DIRECTORY "${local_dir}" RESULT_VARIABLE differs ) # add a trailing plus if the code was change compared to the revision if (${differs} EQUAL 0) # message(STATUS "GIT_DIFF not differing") string(CONCAT _build_version ${_build_version_only}) else() # message(STATUS "GIT_DIFF differing") string(CONCAT _build_version ${_build_version_only}+) endif() message(STATUS "GIT hash: ${_build_version}") else() message(STATUS "GIT not found") endif() string(TIMESTAMP _time_stamp) #configure_file(${local_dir}/git_version.h.in ${output_dir}/git_version.h @ONLY) #configure_file(${local_dir}/gitinfo.cc.in ${output_dir}/gitinfo.cc @ONLY) set(VERSION "const char* MADNESS_GITREVISION=\"${_build_version}\";") set(VERSIONFILE "${output_dir}/gitversion.h") set(VERSIONSOURCE "${source_dir}/gitinfo.cc") #message(STATUS "looking for file ${VERSIONFILE}") if(EXISTS ${VERSIONFILE}) # message(STATUS "reading file ${VERSIONFILE}") file(READ ${VERSIONFILE} VERSION_) message(STATUS "contents of the gitversion file: ${VERSION_}") else() set(VERSION_ "") message(STATUS "cannot find file ${VERSIONFILE}") endif() if (NOT "${VERSION}" STREQUAL "${VERSION_}") file(WRITE ${VERSIONFILE} "${VERSION}") message(STATUS "creating file ${VERSIONFILE}") execute_process( COMMAND touch "gitinfo.cc" WORKING_DIRECTORY "${source_dir}" ) else() message(STATUS "file ${FILE} is up to date") endif() madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/Makefile0000644000175000017500000000075513717002132021352 0ustar mbambaCMAKE := cmake-3.5.1 URL := https://cmake.org/files/v3.5/$(CMAKE).tar.gz PREFIX := $(PWD) all: cmake wget := $(shell wget 2>/dev/null) curl := $(shell curl 2>/dev/null) ifneq ($(wget), ) download := wget $(URL) -O $(CMAKE).tar.gz else download := curl $(URL) -o $(CMAKE).tar.gz endif $(CMAKE).tar.gz: $(download) .PHONY: cmake cmake: $(CMAKE).tar.gz tar -xzf $(CMAKE).tar.gz cd ./$(CMAKE) cd $(CMAKE) && ./configure --prefix=$(PREFIX) # --system-curl cd $(CMAKE) && make install madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/madness-config.cmake.in0000644000175000017500000001647013717002132024217 0ustar mbamba# - CMAKE Config file for the MADNESS package # # Valid COMPONENTS: world tensor misc tensor linalg tinyxml muparser mra chem # If MADNESS_FIND_COMPONENTS only contains world, will load the subset of targets # necessary for MADworld # # The following variables are defined: # MADNESS_FOUND - System has the MADNESS package # MADNESS_INCLUDE_DIRS - The MADNESS include directory # MADNESS_LIBRARIES - The MADNESS libraries and their dependencies # MADNESS_INSTALL_LIBRARY_DIR - Where MADNESS libraries will be installed (same for CONFIG files imported from the build and install trees) # MADNESS__FOUND - System has the specified MADNESS COMPONENT # MADNESS__LIBRARY - The MADNESS COMPONENT library # MADNESS_F77_INTEGER_SIZE - The default F77 integer size used for BLAS calls # MADNESS_ASSUMES_ASLR_DISABLED - Whether MADNESS assumes ASLR to be disabled # # Additionally MADNESS exports the following variables from its dependent packages: # = LAPACK = # LAPACK_LIBRARIES Libraries providing LAPACK and its dependents # LAPACK_INCLUDE_DIRS Include directories where to locate the header files needed to use LAPACK_LIBRARIES # LAPACK_COMPILE_DEFINITIONS Compile definitions needed to use the LAPACK header files # LAPACK_COMPILE_OPTIONS Compile options needed to use the LAPACK header files # = MPI = # MPIEXEC_EXECUTABLE Executable for running MPI programs # MPIEXEC_NUMPROC_FLAG Flag to pass to MPIEXEC_EXECUTABLE before giving # it the number of processors to run on # MPIEXEC_PREFLAGS Flags to pass to MPIEXEC_EXECUTABLE directly # before the executable to run. # MPIEXEC_POSTFLAGS Flags to pass to MPIEXEC_EXECUTABLE after other flags # Set package version set(MADNESS_VERSION "@MADNESS_VERSION@") @PACKAGE_INIT@ set(MADNESS_CMAKE_TOOLCHAIN_FILE "@CMAKE_TOOLCHAIN_FILE@") # ensure that CMAKE_SYSTEM_NAME matches what was used to compile MADNESS if (NOT CMAKE_SYSTEM_NAME STREQUAL @CMAKE_SYSTEM_NAME@) set (ERROR_MESSAGE "CMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME}, does not match CMAKE_SYSTEM_NAME=@CMAKE_SYSTEM_NAME@ used to compile MADNESS") if (MADNESS_CMAKE_TOOLCHAIN_FILE) set (ERROR_MESSAGE "${ERROR_MESSAGE}; make sure to use toolchain @CMAKE_TOOLCHAIN_FILE@ to compile your code!") message (FATAL_ERROR "${ERROR_MESSAGE}") endif(MADNESS_CMAKE_TOOLCHAIN_FILE) endif() # check for prereqs: # 1. Threads if (NOT TARGET Threads::Threads) set(CMAKE_THREAD_PREFER_PTHREAD TRUE) find_package(Threads REQUIRED) endif() # determine if only looking for MADworld ... this is a common scenario that loads a subset of targets set(MADNESS_FIND_WORLD_ONLY FALSE) list(LENGTH MADNESS_FIND_COMPONENTS MADNESS_FIND_NUM_COMPONENTS) list(FIND MADNESS_FIND_COMPONENTS world MADNESS_FIND_COMPONENTS_world_idx) if (MADNESS_FIND_NUM_COMPONENTS EQUAL 1 AND MADNESS_FIND_COMPONENTS_world_idx GREATER -1) set(MADNESS_FIND_WORLD_ONLY TRUE) endif() # Include library IMPORT targets if(NOT TARGET madness AND NOT MADNESS_FIND_WORLD_ONLY) include("${CMAKE_CURRENT_LIST_DIR}/madness-targets.cmake") set(MADNESS_TOP_TARGET_LIBRARY madness) set(MADNESS_TARGET_COMPONENT madness) endif() if(NOT TARGET MADworld AND MADNESS_FIND_WORLD_ONLY) include("${CMAKE_CURRENT_LIST_DIR}/madworld-targets.cmake") set(MADNESS_TOP_TARGET_LIBRARY MADworld) set(MADNESS_TARGET_COMPONENT world) endif() # Set the madness libraries target set(MADNESS_LIBRARIES ${MADNESS_TOP_TARGET_LIBRARY}) set(MADNESS_SOURCE_DIR "@MADNESS_SOURCE_DIR@") set(MADNESS_BINARY_DIR "@MADNESS_BINARY_DIR@") # Set Elemental variables set(MADNESS_HAS_ELEMENTAL @MADNESS_HAS_ELEMENTAL@) set(MADNESS_HAS_ELEMENTAL_EMBEDDED @MADNESS_HAS_ELEMENTAL_EMBEDDED@) set(MADNESS_INSTALL_LIBRARY_DIR "@PACKAGE_MADNESS_INSTALL_LIBDIR@") set(MADNESS_BUILD_INCLUDE_DIRS "${MADNESS_SOURCE_DIR}/src" "${MADNESS_BINARY_DIR}/src") set(MADNESS_INSTALL_INCLUDE_DIRS "@PACKAGE_MADNESS_INSTALL_INCLUDEDIR@" "@PACKAGE_MADNESS_INSTALL_INCLUDEDIR@/madness/external") if (MADNESS_HAS_ELEMENTAL) if(MADNESS_HAS_ELEMENTAL_EMBEDDED) set(Elemental_SOURCE_DIR "@Elemental_SOURCE_DIR@") set(Elemental_BINARY_DIR "@Elemental_BINARY_DIR@") list(APPEND MADNESS_BUILD_INCLUDE_DIRS "${Elemental_SOURCE_DIR}/include" "${Elemental_BINARY_DIR}/include" "${Elemental_SOURCE_DIR}/external/pmrrr/include" "${Elemental_BINARY_DIR}/external/pmrrr/include") else(MADNESS_HAS_ELEMENTAL_EMBEDDED) set(Elemental_SOURCE_DIR "@ELEMENTAL_SOURCE_DIR@") set(Elemental_BINARY_DIR "@ELEMENTAL_BINARY_DIR@") # elemental package and component name depends on version set(ELEMENTAL_PACKAGE_NAME @ELEMENTAL_PACKAGE_NAME@) set(ELEMENTAL_CONFIGURE_NAME @ELEMENTAL_CONFIG_NAME@) # where to look for elemental cmake config file if(CMAKE_CURRENT_LIST_DIR EQUAL MADNESS_BINARY_DIR) set(Elemental_DIR "${Elemental_BINARY_DIR}") else() set(Elemental_DIR "${PACKAGE_PREFIX_DIR}/CMake/elemental") endif() find_package(${ELEMENTAL_CONFIGURE_NAME} REQUIRED COMPONENTS REQUIRED ${ELEMENTAL_PACKAGE_NAME}) list(APPEND MADNESS_BUILD_INCLUDE_DIRS "${Elemental_SOURCE_DIR}/include" "${Elemental_BINARY_DIR}/include" "${Elemental_SOURCE_DIR}/external/pmrrr/include" "${Elemental_BINARY_DIR}/external/pmrrr/include" "${Elemental_SOURCE_DIR}/external/pmrrr/suite_sparse" "${Elemental_BINARY_DIR}/external/pmrrr/suite_sparse" ) endif(MADNESS_HAS_ELEMENTAL_EMBEDDED) endif(MADNESS_HAS_ELEMENTAL) # define MADNESS_INCLUDE_DIRS according to where we are compiling: MADNESS build tree or outside # external packages should use MADNESS_BUILD_INCLUDE_DIRS and MADNESS_INSTALL_INCLUDE_DIRS directly if(CMAKE_CURRENT_LIST_DIR EQUAL MADNESS_BINARY_DIR) set(MADNESS_INCLUDE_DIRS "${MADNESS_BUILD_INCLUDE_DIRS}") else() set(MADNESS_INCLUDE_DIRS "${MADNESS_INSTALL_INCLUDE_DIRS}") endif() # Set component variables foreach(_comp ${MADNESS_FIND_COMPONENTS}) if(TARGET MAD${_comp}) set(MADNESS_${_comp}_FOUND TRUE) set(MADNESS_${_comp}_LIBRARY MAD${_comp}) else() set(MADNESS_${_comp}_FOUND FALSE) set(MADNESS_${_comp}_LIBRARY "MADNESS_${_comp}_LIBRARY-NOTFOUND") endif() endforeach() # Set the Fortran 77 integer size (4 or 8) set(MADNESS_F77_INTEGER_SIZE @FORTRAN_INTEGER_SIZE@) # whether MADNESS assumes ASLR to be disabled set(MADNESS_ASSUMES_ASLR_DISABLED "@MADNESS_ASSUMES_ASLR_DISABLED@") check_required_components(${MADNESS_TARGET_COMPONENT}) set(MADNESS_FOUND TRUE) ########### LAPACK ############ # this is formatted to be added to CMAKE_REQUIRED_LIBRARIES set(LAPACK_LIBRARIES "@PROCESSED_LAPACK_LIBRARIES@") set(LAPACK_INCLUDE_DIRS "@LAPACK_INCLUDE_DIRS@") set(LAPACK_COMPILE_DEFINITIONS "@LAPACK_COMPILE_DEFINITIONS@") set(LAPACK_COMPILE_OPTIONS "@LAPACK_COMPILE_OPTIONS@") ########### MPI ############ set(MPIEXEC_EXECUTABLE "@MPIEXEC_EXECUTABLE@" CACHE FILEPATH "Executable for running MPI programs") set(MPIEXEC_NUMPROC_FLAG "@MPIEXEC_NUMPROC_FLAG@" CACHE STRING "Maximum number of processors available to run MPI applications") set(MPIEXEC_PREFLAGS "@MPIEXEC_PREFLAGS@" CACHE STRING "Flag used by MPI to specify the number of processes for mpiexec") set(MPIEXEC_POSTFLAGS "@MPIEXEC_POSTFLAGS@" CACHE STRING "These flags will be placed after all flags passed to mpiexec") madness-eee5fd9f940ef422ee4ee5abf852c910bc826fd4/cmake/doxygen.cfg.in0000755000175000017500000031274613717002132022466 0ustar mbamba# Doxyfile 1.8.9.1 # This file describes the settings to be used by the documentation system # doxygen (www.doxygen.org) for a project. # # All text after a double hash (##) is considered a comment and is placed in # front of the TAG it is preceding. # # All text after a single hash (#) is considered a comment and will be ignored. # The format is: # TAG = value [value, ...] # For lists, items can also be appended using: # TAG += value [value, ...] # Values that contain spaces should be placed between quotes (\" \"). #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- # This tag specifies the encoding used for all characters in the config file # that follow. The default is UTF-8 which is also the encoding used for all text # before the first occurrence of this tag. Doxygen uses libiconv (or the iconv # built into libc) for the transcoding. See http://www.gnu.org/software/libiconv # for the list of possible encodings. # The default value is: UTF-8. DOXYFILE_ENCODING = UTF-8 # The PROJECT_NAME tag is a single word (or a sequence of words surrounded by # double-quotes, unless you are using Doxywizard) that should identify the # project for which the documentation is generated. This name is used in the # title of most generated pages and in a few other places. # The default value is: My Project. PROJECT_NAME = @PROJECT_NAME@ # The PROJECT_NUMBER tag can be used to enter a project or revision number. This # could be handy for archiving the generated documentation or if some version # control system is used. PROJECT_NUMBER = "@MADNESS_VERSION@" # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a # quick idea about the purpose of the project. Keep the description short. PROJECT_BRIEF = # With the PROJECT_LOGO tag one can specify a logo or an icon that is included # in the documentation. The maximum height of the logo should not exceed 55 # pixels and the maximum width should not exceed 200 pixels. Doxygen will copy # the logo to the output directory. PROJECT_LOGO = # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path # into which the generated documentation will be written. If a relative path is # entered, it will be relative to the location where doxygen was started. If # left blank the current directory will be used. OUTPUT_DIRECTORY = ./ # If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub- # directories (in 2 levels) under the output directory of each output format and # will distribute the generated files over these directories. Enabling this # option can be useful when feeding doxygen a huge amount of source files, where # putting all generated files in the same directory would otherwise causes # performance problems for the file system. # The default value is: NO. CREATE_SUBDIRS = NO # If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII # characters to appear in the names of generated files. If set to NO, non-ASCII # characters will be escaped, for example _xE3_x81_x84 will be used for Unicode # U+3044. # The default value is: NO. ALLOW_UNICODE_NAMES = NO # The OUTPUT_LANGUAGE tag is used to specify the language in which all # documentation generated by doxygen is written. Doxygen will use this # information to generate all constant output in the proper language. # Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese, # Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States), # Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian, # Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages), # Korean, Korean-en (Korean with English messages), Latvian, Lithuanian, # Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian, # Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish, # Ukrainian and Vietnamese. # The default value is: English. OUTPUT_LANGUAGE = English # If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member # descriptions after the members that are listed in the file and class # documentation (similar to Javadoc). Set to NO to disable this. # The default value is: YES. BRIEF_MEMBER_DESC = YES # If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief # description of a member or function before the detailed description # # Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the # brief descriptions will be completely suppressed. # The default value is: YES. REPEAT_BRIEF = YES # This tag implements a quasi-intelligent brief description abbreviator that is # used to form the text in various listings. Each string in this list, if found # as the leading text of the brief description, will be stripped from the text # and the result, after processing the whole list, is used as the annotated # text. Otherwise, the brief description is used as-is. If left blank, the # following values are used ($name is automatically replaced with the name of # the entity):The $name class, The $name widget, The $name file, is, provides, # specifies, contains, represents, a, an and the. ABBREVIATE_BRIEF = # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then # doxygen will generate a detailed section even if there is only a brief # description. # The default value is: NO. ALWAYS_DETAILED_SEC = NO # If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all # inherited members of a class in the documentation of that class as if those # members were ordinary class members. Constructors, destructors and assignment # operators of the base classes will not be shown. # The default value is: NO. INLINE_INHERITED_MEMB = NO # If the FULL_PATH_NAMES tag is set to YES, doxygen will prepend the full path # before files name in the file list and in the header files. If set to NO the # shortest path that makes the file name unique will be used # The default value is: YES. FULL_PATH_NAMES = NO # The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path. # Stripping is only done if one of the specified strings matches the left-hand # part of the path. The tag can be used to show relative paths in the file list. # If left blank the directory from which doxygen is run is used as the path to # strip. # # Note that you can specify absolute paths here, but also relative paths, which # will be relative from the directory where doxygen is started. # This tag requires that the tag FULL_PATH_NAMES is set to YES. STRIP_FROM_PATH = @PROJECT_SOURCE_DIR@/src # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the # path mentioned in the documentation of a class, which tells the reader which # header file to include in order to use a class. If left blank only the name of # the header file containing the class definition is used. Otherwise one should # specify the list of include paths that are normally passed to the compiler # using the -I flag. STRIP_FROM_INC_PATH = # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but # less readable) file names. This can be useful is your file systems doesn't # support long names like on DOS, Mac, or CD-ROM. # The default value is: NO. SHORT_NAMES = NO # If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the # first line (until the first dot) of a Javadoc-style comment as the brief # description. If set to NO, the Javadoc-style will behave just like regular Qt- # style comments (thus requiring an explicit @brief command for a brief # description.) # The default value is: NO. JAVADOC_AUTOBRIEF = NO # If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first # line (until the first dot) of a Qt-style comment as the brief description. If # set to NO, the Qt-style will behave just like regular Qt-style comments (thus # requiring an explicit \brief command for a brief description.) # The default value is: NO. QT_AUTOBRIEF = NO # The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a # multi-line C++ special comment block (i.e. a block of //! or /// comments) as # a brief description. This used to be the default behavior. The new default is # to treat a multi-line C++ comment block as a detailed description. Set this # tag to YES if you prefer the old behavior instead. # # Note that setting this tag to YES also means that rational rose comments are # not recognized any more. # The default value is: NO. MULTILINE_CPP_IS_BRIEF = NO # If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the # documentation from any documented member that it re-implements. # The default value is: YES. INHERIT_DOCS = YES # If the SEPARATE_MEMBER_PAGES tag is set to YES then doxygen will produce a new # page for each member. If set to NO, the documentation of a member will be part # of the file/class/namespace that contains it. # The default value is: NO. SEPARATE_MEMBER_PAGES = NO # The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen # uses this value to replace tabs by spaces in code fragments. # Minimum value: 1, maximum value: 16, default value: 4. TAB_SIZE = 4 # This tag can be used to specify a number of aliases that act as commands in # the documentation. An alias has the form: # name=value # For example adding # "sideeffect=@par Side Effects:\n" # will allow you to put the command \sideeffect (or @sideeffect) in the # documentation, which will result in a user-defined paragraph with heading # "Side Effects:". You can put \n's in the value part of an alias to insert # newlines. ALIASES = "website=https://github.com/m-a-d-n-e-s-s/madness" # This tag can be used to specify a number of word-keyword mappings (TCL only). # A mapping has the form "name=value". For example adding "class=itcl::class" # will allow you to use the command class in the itcl::class meaning. TCL_SUBST = # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources # only. Doxygen will then generate output that is more tailored for C. For # instance, some of the names that are used will be different. The list of all # members will be omitted, etc. # The default value is: NO. OPTIMIZE_OUTPUT_FOR_C = NO # Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or # Python sources only. Doxygen will then generate output that is more tailored # for that language. For instance, namespaces will be presented as packages, # qualified scopes will look different, etc. # The default value is: NO. OPTIMIZE_OUTPUT_JAVA = NO # Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran # sources. Doxygen will then generate output that is tailored for Fortran. # The default value is: NO. OPTIMIZE_FOR_FORTRAN = NO # Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL # sources. Doxygen will then generate output that is tailored for VHDL. # The default value is: NO. OPTIMIZE_OUTPUT_VHDL = NO # Doxygen selects the parser to use depending on the extension of the files it # parses. With this tag you can assign which parser to use for a given # extension. Doxygen has a built-in mapping, but you can override or extend it # using this tag. The format is ext=language, where ext is a file extension, and # language is one of the parsers supported by doxygen: IDL, Java, Javascript, # C#, C, C++, D, PHP, Objective-C, Python, Fortran (fixed format Fortran: # FortranFixed, free formatted Fortran: FortranFree, unknown formatted Fortran: # Fortran. In the later case the parser tries to guess whether the code is fixed # or free formatted code, this is the default for Fortran type files), VHDL. For # instance to make doxygen treat .inc files as Fortran files (default is PHP), # and .f files as C (default is Fortran), use: inc=Fortran f=C. # # Note: For files without extension you can use no_extension as a placeholder. # # Note that for custom extensions you also need to set FILE_PATTERNS otherwise # the files are not read by doxygen. EXTENSION_MAPPING = # If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments # according to the Markdown format, which allows for more readable # documentation. See http://daringfireball.net/projects/markdown/ for details. # The output of markdown processing is further processed by doxygen, so you can # mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in # case of backward compatibilities issues. # The default value is: YES. MARKDOWN_SUPPORT = YES # When enabled doxygen tries to link words that correspond to documented # classes, or namespaces to their corresponding documentation. Such a link can # be prevented in individual cases by putting a % sign in front of the word or # globally by setting AUTOLINK_SUPPORT to NO. # The default value is: YES. AUTOLINK_SUPPORT = YES # If you use STL classes (i.e. std::string, std::vector, etc.) but do not want # to include (a tag file for) the STL sources as input, then you should set this # tag to YES in order to let doxygen match functions declarations and # definitions whose arguments contain STL classes (e.g. func(std::string); # versus func(std::string) {}). This also make the inheritance and collaboration # diagrams that involve STL classes more complete and accurate. # The default value is: NO. BUILTIN_STL_SUPPORT = NO # If you use Microsoft's C++/CLI language, you should set this option to YES to # enable parsing support. # The default value is: NO. CPP_CLI_SUPPORT = NO # Set the SIP_SUPPORT tag to YES if your project consists of sip (see: # http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen # will parse them like normal C++ but will assume all classes use public instead # of private inheritance when no explicit protection keyword is present. # The default value is: NO. SIP_SUPPORT = NO # For Microsoft's IDL there are propget and propput attributes to indicate # getter and setter methods for a property. Setting this option to YES will make # doxygen to replace the get and set methods by a property in the documentation. # This will only work if the methods are indeed getting or setting a simple # type. If this is not the case, or you want to show the methods anyway, you # should set this option to NO. # The default value is: YES. IDL_PROPERTY_SUPPORT = YES # If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC # tag is set to YES then doxygen will reuse the documentation of the first # member in the group (if any) for the other members of the group. By default # all members of a group must be documented explicitly. # The default value is: NO. DISTRIBUTE_GROUP_DOC = NO # Set the SUBGROUPING tag to YES to allow class member groups of the same type # (for instance a group of public functions) to be put as a subgroup of that # type (e.g. under the Public Functions section). Set it to NO to prevent # subgrouping. Alternatively, this can be done per class using the # \nosubgrouping command. # The default value is: YES. SUBGROUPING = YES # When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions # are shown inside the group in which they are included (e.g. using \ingroup) # instead of on a separate page (for HTML and Man pages) or section (for LaTeX # and RTF). # # Note that this feature does not work in combination with # SEPARATE_MEMBER_PAGES. # The default value is: NO. INLINE_GROUPED_CLASSES = NO # When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions # with only public data fields or simple typedef fields will be shown inline in # the documentation of the scope in which they are defined (i.e. file, # namespace, or group documentation), provided this scope is documented. If set # to NO, structs, classes, and unions are shown on a separate page (for HTML and # Man pages) or section (for LaTeX and RTF). # The default value is: NO. INLINE_SIMPLE_STRUCTS = NO # When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or # enum is documented as struct, union, or enum with the name of the typedef. So # typedef struct TypeS {} TypeT, will appear in the documentation as a struct # with name TypeT. When disabled the typedef will appear as a member of a file, # namespace, or class. And the struct will be named TypeS. This can typically be # useful for C code in case the coding convention dictates that all compound # types are typedef'ed and only the typedef is referenced, never the tag name. # The default value is: NO. TYPEDEF_HIDES_STRUCT = NO # The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This # cache is used to resolve symbols given their name and scope. Since this can be # an expensive process and often the same symbol appears multiple times in the # code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small # doxygen will become slower. If the cache is too large, memory is wasted. The # cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range # is 0..9, the default is 0, corresponding to a cache size of 2^16=65536 # symbols. At the end of a run doxygen will report the cache usage and suggest # the optimal cache size from a speed point of view. # Minimum value: 0, maximum value: 9, default value: 0. LOOKUP_CACHE_SIZE = 0 #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- # If the EXTRACT_ALL tag is set to YES, doxygen will assume all entities in # documentation are documented, even if no documentation was available. Private # class members and static file members will be hidden unless the # EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES. # Note: This will also disable the warnings about undocumented members that are # normally produced when WARNINGS is set to YES. # The default value is: NO. EXTRACT_ALL = YES # If the EXTRACT_PRIVATE tag is set to YES, all private members of a class will # be included in the documentation. # The default value is: NO. EXTRACT_PRIVATE = YES # If the EXTRACT_PACKAGE tag is set to YES, all members with package or internal # scope will be included in the documentation. # The default value is: NO. EXTRACT_PACKAGE = NO # If the EXTRACT_STATIC tag is set to YES, all static members of a file will be # included in the documentation. # The default value is: NO. EXTRACT_STATIC = YES # If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined # locally in source files will be included in the documentation. If set to NO, # only classes defined in header files are included. Does not have any effect # for Java sources. # The default value is: YES. EXTRACT_LOCAL_CLASSES = YES # This flag is only useful for Objective-C code. If set to YES, local methods, # which are defined in the implementation section but not in the interface are # included in the documentation. If set to NO, only methods in the interface are # included. # The default value is: NO. EXTRACT_LOCAL_METHODS = NO # If this flag is set to YES, the members of anonymous namespaces will be # extracted and appear in the documentation as a namespace called # 'anonymous_namespace{file}', where file will be replaced with the base name of # the file that contains the anonymous namespace. By default anonymous namespace # are hidden. # The default value is: NO. EXTRACT_ANON_NSPACES = NO # If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all # undocumented members inside documented classes or files. If set to NO these # members will be included in the various overviews, but no documentation # section is generated. This option has no effect if EXTRACT_ALL is enabled. # The default value is: NO. HIDE_UNDOC_MEMBERS = NO # If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all # undocumented classes that are normally visible in the class hierarchy. If set # to NO, these classes will be included in the various overviews. This option # has no effect if EXTRACT_ALL is enabled. # The default value is: NO. HIDE_UNDOC_CLASSES = NO # If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend # (class|struct|union) declarations. If set to NO, these declarations will be # included in the documentation. # The default value is: NO. HIDE_FRIEND_COMPOUNDS = NO # If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any # documentation blocks found inside the body of a function. If set to NO, these # blocks will be appended to the function's detailed documentation block. # The default value is: NO. HIDE_IN_BODY_DOCS = NO # The INTERNAL_DOCS tag determines if documentation that is typed after a # \internal command is included. If the tag is set to NO then the documentation # will be excluded. Set it to YES to include the internal documentation. # The default value is: NO. INTERNAL_DOCS = NO # If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file # names in lower-case letters. If set to YES, upper-case letters are also # allowed. This is useful if you have classes or files whose names only differ # in case and if your file system supports case sensitive file names. Windows # and Mac users are advised to set this option to NO. # The default value is: system dependent. CASE_SENSE_NAMES = YES # If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with # their full class and namespace scopes in the documentation. If set to YES, the # scope will be hidden. # The default value is: NO. HIDE_SCOPE_NAMES = NO # If the HIDE_COMPOUND_REFERENCE tag is set to NO (default) then doxygen will # append additional text to a page's title, such as Class Reference. If set to # YES the compound reference will be hidden. # The default value is: NO. HIDE_COMPOUND_REFERENCE= NO # If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of # the files that are included by a file in the documentation of that file. # The default value is: YES. SHOW_INCLUDE_FILES = YES # If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each # grouped member an include statement to the documentation, telling the reader # which file to include in order to use the member. # The default value is: NO. SHOW_GROUPED_MEMB_INC = NO # If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include # files with double quotes in the documentation rather than with sharp brackets. # The default value is: NO. FORCE_LOCAL_INCLUDES = NO # If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the # documentation for inline members. # The default value is: YES. INLINE_INFO = YES # If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the # (detailed) documentation of file and class members alphabetically by member # name. If set to NO, the members will appear in declaration order. # The default value is: YES. SORT_MEMBER_DOCS = YES # If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief # descriptions of file, namespace and class members alphabetically by member # name. If set to NO, the members will appear in declaration order. Note that # this will also influence the order of the classes in the class list. # The default value is: NO. SORT_BRIEF_DOCS = YES # If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the # (brief and detailed) documentation of class members so that constructors and # destructors are listed first. If set to NO the constructors will appear in the # respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS. # Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief # member documentation. # Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting # detailed member documentation. # The default value is: NO. SORT_MEMBERS_CTORS_1ST = YES # If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy # of group names into alphabetical order. If set to NO the group names will # appear in their defined order. # The default value is: NO. SORT_GROUP_NAMES = NO # If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by # fully-qualified names, including namespaces. If set to NO, the class list will # be sorted only by class name, not including the namespace part. # Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. # Note: This option applies only to the class list, not to the alphabetical # list. # The default value is: NO. SORT_BY_SCOPE_NAME = NO # If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper # type resolution of all parameters of a function it will reject a match between # the prototype and the implementation of a member function even if there is # only one candidate or it is obvious which candidate to choose by doing a # simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still # accept a match between prototype and implementation in such cases. # The default value is: NO. STRICT_PROTO_MATCHING = NO # The GENERATE_TODOLIST tag can be used to enable (YES) or disable (NO) the todo # list. This list is created by putting \todo commands in the documentation. # The default value is: YES. GENERATE_TODOLIST = YES # The GENERATE_TESTLIST tag can be used to enable (YES) or disable (NO) the test # list. This list is created by putting \test commands in the documentation. # The default value is: YES. GENERATE_TESTLIST = YES # The GENERATE_BUGLIST tag can be used to enable (YES) or disable (NO) the bug # list. This list is created by putting \bug commands in the documentation. # The default value is: YES. GENERATE_BUGLIST = YES # The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or disable (NO) # the deprecated list. This list is created by putting \deprecated commands in # the documentation. # The default value is: YES. GENERATE_DEPRECATEDLIST= YES # The ENABLED_SECTIONS tag can be used to enable conditional documentation # sections, marked by \if ... \endif and \cond # ... \endcond blocks. ENABLED_SECTIONS = # The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the # initial value of a variable or macro / define can have for it to appear in the # documentation. If the initializer consists of more lines than specified here # it will be hidden. Use a value of 0 to hide initializers completely. The # appearance of the value of individual variables and macros / defines can be # controlled using \showinitializer or \hideinitializer command in the # documentation regardless of this setting. # Minimum value: 0, maximum value: 10000, default value: 30. MAX_INITIALIZER_LINES = 30 # Set the SHOW_USED_FILES tag to NO to disable the list of files generated at # the bottom of the documentation of classes and structs. If set to YES, the # list will mention the files that were used to generate the documentation. # The default value is: YES. SHOW_USED_FILES = YES # Set the SHOW_FILES tag to NO to disable the generation of the Files page. This # will remove the Files entry from the Quick Index and from the Folder Tree View # (if specified). # The default value is: YES. SHOW_FILES = YES # Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces # page. This will remove the Namespaces entry from the Quick Index and from the # Folder Tree View (if specified). # The default value is: YES. SHOW_NAMESPACES = YES # The FILE_VERSION_FILTER tag can be used to specify a program or script that # doxygen should invoke to get the current version for each file (typically from # the version control system). Doxygen will invoke the program by executing (via # popen()) the command command input-file, where command is the value of the # FILE_VERSION_FILTER tag, and input-file is the name of an input file provided # by doxygen. Whatever the program writes to standard output is used as the file # version. For an example see the documentation. FILE_VERSION_FILTER = # The LAYOUT_FILE tag can be used to specify a layout file which will be parsed # by doxygen. The layout file controls the global structure of the generated # output files in an output format independent way. To create the layout file # that represents doxygen's defaults, run doxygen with the -l option. You can # optionally specify a file name after the option, if omitted DoxygenLayout.xml # will be used as the name of the layout file. # # Note that if you run doxygen from a directory containing a file called # DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE # tag is left empty. LAYOUT_FILE = # The CITE_BIB_FILES tag can be used to specify one or more bib files containing # the reference definitions. This must be a list of .bib files. The .bib # extension is automatically appended if omitted. This requires the bibtex tool # to be installed. See also http://en.wikipedia.org/wiki/BibTeX for more info. # For LaTeX the style of the bibliography can be controlled using # LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the # search path. See also \cite for info how to create references. CITE_BIB_FILES = #--------------------------------------------------------------------------- # Configuration options related to warning and progress messages #--------------------------------------------------------------------------- # The QUIET tag can be used to turn on/off the messages that are generated to # standard output by doxygen. If QUIET is set to YES this implies that the # messages are off. # The default value is: NO. QUIET = NO # The WARNINGS tag can be used to turn on/off the warning messages that are # generated to standard error (stderr) by doxygen. If WARNINGS is set to YES # this implies that the warnings are on. # # Tip: Turn warnings on while writing the documentation. # The default value is: YES. WARNINGS = YES # If the WARN_IF_UNDOCUMENTED tag is set to YES then doxygen will generate # warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag # will automatically be disabled. # The default value is: YES. WARN_IF_UNDOCUMENTED = YES # If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for # potential errors in the documentation, such as not documenting some parameters # in a documented function, or documenting parameters that don't exist or using # markup commands wrongly. # The default value is: YES. WARN_IF_DOC_ERROR = YES # This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that # are documented, but have no documentation for their parameters or return # value. If set to NO, doxygen will only warn about wrong or incomplete # parameter documentation, but not about the absence of documentation. # The default value is: NO. WARN_NO_PARAMDOC = YES # The WARN_FORMAT tag determines the format of the warning messages that doxygen # can produce. The string should contain the $file, $line, and $text tags, which # will be replaced by the file and line number from which the warning originated # and the warning text. Optionally the format may contain $version, which will # be replaced by the version of the file (if it could be obtained via # FILE_VERSION_FILTER) # The default value is: $file:$line: $text. WARN_FORMAT = "$file:$line: $text" # The WARN_LOGFILE tag can be used to specify a file to which warning and error # messages should be written. If left blank the output is written to standard # error (stderr). WARN_LOGFILE = doxygen-warnings.txt #--------------------------------------------------------------------------- # Configuration options related to the input files #--------------------------------------------------------------------------- # The INPUT tag is used to specify the files and/or directories that contain # documented source files. You may enter file names like myfile.cpp or # directories like /usr/src/myproject. Separate the files or directories with # spaces. # Note: If this tag is empty the current directory is searched. INPUT = "@PROJECT_SOURCE_DIR@/doc" \ "@PROJECT_SOURCE_DIR@/src" \ "@PROJECT_SOURCE_DIR@/bin" # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses # libiconv (or the iconv built into libc) for the transcoding. See the libiconv # documentation (see: http://www.gnu.org/software/libiconv) for the list of # possible encodings. # The default value is: UTF-8. INPUT_ENCODING = UTF-8 # If the value of the INPUT tag contains directories, you can use the # FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and # *.h) to filter out the source-files in the directories. If left blank the # following patterns are tested:*.c, *.cc, *.cxx, *.cpp, *.c++, *.java, *.ii, # *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h, *.hh, *.hxx, *.hpp, # *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc, *.m, *.markdown, # *.md, *.mm, *.dox, *.py, *.f90, *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, # *.qsf, *.as and *.js. FILE_PATTERNS = *.dox \ *.h \ *.cpp \ *.cc \ *.c # The RECURSIVE tag can be used to specify whether or not subdirectories should # be searched for input files as well. # The default value is: NO. RECURSIVE = YES # The EXCLUDE tag can be used to specify files and/or directories that should be # excluded from the INPUT source files. This way you can easily exclude a # subdirectory from a directory tree whose root is specified with the INPUT tag. # # Note that relative paths are relative to the directory from which doxygen is # run. EXCLUDE = "@PROJECT_SOURCE_DIR@/src/madness/external" \ "@PROJECT_SOURCE_DIR@/src/apps/DFcode" \ "@PROJECT_SOURCE_DIR@/src/apps/ii" \ "@PROJECT_SOURCE_DIR@/src/apps/jacob" \ "@PROJECT_SOURCE_DIR@/src/apps/nick" \ "@PROJECT_SOURCE_DIR@/src/apps/polar" # The EXCLUDE_SYMLINKS tag can be used to select whether or not files or # directories that are symbolic links (a Unix file system feature) are excluded # from the input. # The default value is: NO. EXCLUDE_SYMLINKS = NO # If the value of the INPUT tag contains directories, you can use the # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude # certain files from those directories. # # Note that the wildcards are matched against the file with absolute path, so to # exclude all test directories for example use the pattern */test/* EXCLUDE_PATTERNS = LIBS.h \ mraX.cc \ mraX.h # The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names # (namespaces, classes, functions, etc.) that should be excluded from the # output. The symbol name can be a fully qualified name, a word, or if the # wildcard * is used, a substring. Examples: ANamespace, AClass, # AClass::ANamespace, ANamespace::*Test # # Note that the wildcards are matched against the file with absolute path, so to # exclude all test directories use the pattern */test/* EXCLUDE_SYMBOLS = # The EXAMPLE_PATH tag can be used to specify one or more files or directories # that contain example code fragments that are included (see the \include # command). EXAMPLE_PATH = # If the value of the EXAMPLE_PATH tag contains directories, you can use the # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and # *.h) to filter out the source-files in the directories. If left blank all # files are included. EXAMPLE_PATTERNS = # If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be # searched for input files to be used with the \include or \dontinclude commands # irrespective of the value of the RECURSIVE tag. # The default value is: NO. EXAMPLE_RECURSIVE = NO # The IMAGE_PATH tag can be used to specify one or more files or directories # that contain images that are to be included in the documentation (see the # \image command). IMAGE_PATH = # The INPUT_FILTER tag can be used to specify a program that doxygen should # invoke to filter for each input file. Doxygen will invoke the filter program # by executing (via popen()) the command: # # # # where is the value of the INPUT_FILTER tag, and is the # name of an input file. Doxygen will then use the output that the filter # program writes to standard output. If FILTER_PATTERNS is specified, this tag # will be ignored. # # Note that the filter must not add or remove lines; it is applied before the # code is scanned, but not when the output code is generated. If lines are added # or removed, the anchors will not be placed correctly. INPUT_FILTER = # The FILTER_PATTERNS tag can be used to specify filters on a per file pattern # basis. Doxygen will compare the file name with each pattern and apply the # filter if there is a match. The filters are a list of the form: pattern=filter # (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how # filters are used. If the FILTER_PATTERNS tag is empty or if none of the # patterns match the file name, INPUT_FILTER is applied. FILTER_PATTERNS = # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using # INPUT_FILTER) will also be used to filter the input files that are used for # producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES). # The default value is: NO. FILTER_SOURCE_FILES = NO # The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file # pattern. A pattern will override the setting for FILTER_PATTERN (if any) and # it is also possible to disable source filtering for a specific pattern using # *.ext= (so without naming a filter). # This tag requires that the tag FILTER_SOURCE_FILES is set to YES. FILTER_SOURCE_PATTERNS = # If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that # is part of the input, its contents will be placed on the main page # (index.html). This can be useful if you have a project on for instance GitHub # and want to reuse the introduction page also for the doxygen output. USE_MDFILE_AS_MAINPAGE = #--------------------------------------------------------------------------- # Configuration options related to source browsing #--------------------------------------------------------------------------- # If the SOURCE_BROWSER tag is set to YES then a list of source files will be # generated. Documented entities will be cross-referenced with these sources. # # Note: To get rid of all source code in the generated output, make sure that # also VERBATIM_HEADERS is set to NO. # The default value is: NO. SOURCE_BROWSER = NO # Setting the INLINE_SOURCES tag to YES will include the body of functions, # classes and enums directly into the documentation. # The default value is: NO. INLINE_SOURCES = NO # Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any # special comment blocks from generated source code fragments. Normal C, C++ and # Fortran comments will always remain visible. # The default value is: YES. STRIP_CODE_COMMENTS = NO # If the REFERENCED_BY_RELATION tag is set to YES then for each documented # function all documented functions referencing it will be listed. # The default value is: NO. REFERENCED_BY_RELATION = YES # If the REFERENCES_RELATION tag is set to YES then for each documented function # all documented entities called/used by that function will be listed. # The default value is: NO. REFERENCES_RELATION = YES # If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set # to YES then the hyperlinks from functions in REFERENCES_RELATION and # REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will # link to the documentation. # The default value is: YES. REFERENCES_LINK_SOURCE = YES # If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the # source code will show a tooltip with additional information such as prototype, # brief description and links to the definition and documentation. Since this # will make the HTML file larger and loading of large files a bit slower, you # can opt to disable this feature. # The default value is: YES. # This tag requires that the tag SOURCE_BROWSER is set to YES. SOURCE_TOOLTIPS = YES # If the USE_HTAGS tag is set to YES then the references to source code will # point to the HTML generated by the htags(1) tool instead of doxygen built-in # source browser. The htags tool is part of GNU's global source tagging system # (see http://www.gnu.org/software/global/global.html). You will need version # 4.8.6 or higher. # # To use it do the following: # - Install the latest version of global # - Enable SOURCE_BROWSER and USE_HTAGS in the config file # - Make sure the INPUT points to the root of the source tree # - Run doxygen as normal # # Doxygen will invoke htags (and that will in turn invoke gtags), so these # tools must be available from the command line (i.e. in the search path). # # The result: instead of the source browser generated by doxygen, the links to # source code will now point to the output of htags. # The default value is: NO. # This tag requires that the tag SOURCE_BROWSER is set to YES. USE_HTAGS = NO # If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a # verbatim copy of the header file for each class for which an include is # specified. Set to NO to disable this. # See also: Section \class. # The default value is: YES. VERBATIM_HEADERS = YES #--------------------------------------------------------------------------- # Configuration options related to the alphabetical class index #--------------------------------------------------------------------------- # If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all # compounds will be generated. Enable this if the project contains a lot of # classes, structs, unions or interfaces. # The default value is: YES. ALPHABETICAL_INDEX = NO # The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in # which the alphabetical index list will be split. # Minimum value: 1, maximum value: 20, default value: 5. # This tag requires that the tag ALPHABETICAL_INDEX is set to YES. COLS_IN_ALPHA_INDEX = 5 # In case all classes in a project start with a common prefix, all classes will # be put under the same header in the alphabetical index. The IGNORE_PREFIX tag # can be used to specify a prefix (or a list of prefixes) that should be ignored # while generating the index headers. # This tag requires that the tag ALPHABETICAL_INDEX is set to YES. IGNORE_PREFIX = #--------------------------------------------------------------------------- # Configuration options related to the HTML output #--------------------------------------------------------------------------- # If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output # The default value is: YES. GENERATE_HTML = YES # The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a # relative path is entered the value of OUTPUT_DIRECTORY will be put in front of # it. # The default directory is: html. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_OUTPUT = html # The HTML_FILE_EXTENSION tag can be used to specify the file extension for each # generated HTML page (for example: .htm, .php, .asp). # The default value is: .html. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_FILE_EXTENSION = .html # The HTML_HEADER tag can be used to specify a user-defined HTML header file for # each generated HTML page. If the tag is left blank doxygen will generate a # standard header. # # To get valid HTML the header file that includes any scripts and style sheets # that doxygen needs, which is dependent on the configuration options used (e.g. # the setting GENERATE_TREEVIEW). It is highly recommended to start with a # default header using # doxygen -w html new_header.html new_footer.html new_stylesheet.css # YourConfigFile # and then modify the file new_header.html. See also section "Doxygen usage" # for information on how to generate the default header that doxygen normally # uses. # Note: The header is subject to change so you typically have to regenerate the # default header when upgrading to a newer version of doxygen. For a description # of the possible markers and block names see the documentation. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_HEADER = # The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each # generated HTML page. If the tag is left blank doxygen will generate a standard # footer. See HTML_HEADER for more information on how to generate a default # footer and what special commands can be used inside the footer. See also # section "Doxygen usage" for information on how to generate the default footer # that doxygen normally uses. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_FOOTER = # The HTML_STYLESHEET tag can be used to specify a user-defined cascading style # sheet that is used by each HTML page. It can be used to fine-tune the look of # the HTML output. If left blank doxygen will generate a default style sheet. # See also section "Doxygen usage" for information on how to generate the style # sheet that doxygen normally uses. # Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as # it is more robust and this tag (HTML_STYLESHEET) will in the future become # obsolete. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_STYLESHEET = # The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined # cascading style sheets that are included after the standard style sheets # created by doxygen. Using this option one can overrule certain style aspects. # This is preferred over using HTML_STYLESHEET since it does not replace the # standard style sheet and is therefore more robust against future updates. # Doxygen will copy the style sheet files to the output directory. # Note: The order of the extra style sheet files is of importance (e.g. the last # style sheet in the list overrules the setting of the previous ones in the # list). For an example see the documentation. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_EXTRA_STYLESHEET = # The HTML_EXTRA_FILES tag can be used to specify one or more extra images or # other source files which should be copied to the HTML output directory. Note # that these files will be copied to the base HTML output directory. Use the # $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these # files. In the HTML_STYLESHEET file, use the file name only. Also note that the # files will be copied as-is; there are no commands or markers available. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_EXTRA_FILES = # The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen # will adjust the colors in the style sheet and background images according to # this color. Hue is specified as an angle on a colorwheel, see # http://en.wikipedia.org/wiki/Hue for more information. For instance the value # 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300 # purple, and 360 is red again. # Minimum value: 0, maximum value: 359, default value: 220. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_COLORSTYLE_HUE = 220 # The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors # in the HTML output. For a value of 0 the output will use grayscales only. A # value of 255 will produce the most vivid colors. # Minimum value: 0, maximum value: 255, default value: 100. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_COLORSTYLE_SAT = 100 # The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the # luminance component of the colors in the HTML output. Values below 100 # gradually make the output lighter, whereas values above 100 make the output # darker. The value divided by 100 is the actual gamma applied, so 80 represents # a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not # change the gamma. # Minimum value: 40, maximum value: 240, default value: 80. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_COLORSTYLE_GAMMA = 80 # If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML # page will contain the date and time when the page was generated. Setting this # to NO can help when comparing the output of multiple runs. # The default value is: YES. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_TIMESTAMP = YES # If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML # documentation will contain sections that can be hidden and shown after the # page has loaded. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_DYNAMIC_SECTIONS = NO # With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries # shown in the various tree structured indices initially; the user can expand # and collapse entries dynamically later on. Doxygen will expand the tree to # such a level that at most the specified number of entries are visible (unless # a fully collapsed tree already exceeds this amount). So setting the number of # entries 1 will produce a full collapsed tree by default. 0 is a special value # representing an infinite number of entries and will result in a full expanded # tree by default. # Minimum value: 0, maximum value: 9999, default value: 100. # This tag requires that the tag GENERATE_HTML is set to YES. HTML_INDEX_NUM_ENTRIES = 100 # If the GENERATE_DOCSET tag is set to YES, additional index files will be # generated that can be used as input for Apple's Xcode 3 integrated development # environment (see: http://developer.apple.com/tools/xcode/), introduced with # OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a # Makefile in the HTML output directory. Running make will produce the docset in # that directory and running make install will install the docset in # ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at # startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html # for more information. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_DOCSET = NO # This tag determines the name of the docset feed. A documentation feed provides # an umbrella under which multiple documentation sets from a single provider # (such as a company or product suite) can be grouped. # The default value is: Doxygen generated docs. # This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_FEEDNAME = "Doxygen generated docs" # This tag specifies a string that should uniquely identify the documentation # set bundle. This should be a reverse domain-name style string, e.g. # com.mycompany.MyDocSet. Doxygen will append .docset to the name. # The default value is: org.doxygen.Project. # This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_BUNDLE_ID = org.doxygen.Project # The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify # the documentation publisher. This should be a reverse domain-name style # string, e.g. com.mycompany.MyDocSet.documentation. # The default value is: org.doxygen.Publisher. # This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_PUBLISHER_ID = org.doxygen.Publisher # The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher. # The default value is: Publisher. # This tag requires that the tag GENERATE_DOCSET is set to YES. DOCSET_PUBLISHER_NAME = Publisher # If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three # additional HTML index files: index.hhp, index.hhc, and index.hhk. The # index.hhp is a project file that can be read by Microsoft's HTML Help Workshop # (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on # Windows. # # The HTML Help Workshop contains a compiler that can convert all HTML output # generated by doxygen into a single compiled HTML file (.chm). Compiled HTML # files are now used as the Windows 98 help format, and will replace the old # Windows help format (.hlp) on all Windows platforms in the future. Compressed # HTML files also contain an index, a table of contents, and you can search for # words in the documentation. The HTML workshop also contains a viewer for # compressed HTML files. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_HTMLHELP = NO # The CHM_FILE tag can be used to specify the file name of the resulting .chm # file. You can add a path in front of the file if the result should not be # written to the html output directory. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. CHM_FILE = # The HHC_LOCATION tag can be used to specify the location (absolute path # including file name) of the HTML help compiler (hhc.exe). If non-empty, # doxygen will try to run the HTML help compiler on the generated index.hhp. # The file has to be specified with full path. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. HHC_LOCATION = # The GENERATE_CHI flag controls if a separate .chi index file is generated # (YES) or that it should be included in the master .chm file (NO). # The default value is: NO. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. GENERATE_CHI = NO # The CHM_INDEX_ENCODING is used to encode HtmlHelp index (hhk), content (hhc) # and project file content. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. CHM_INDEX_ENCODING = # The BINARY_TOC flag controls whether a binary table of contents is generated # (YES) or a normal table of contents (NO) in the .chm file. Furthermore it # enables the Previous and Next buttons. # The default value is: NO. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. BINARY_TOC = NO # The TOC_EXPAND flag can be set to YES to add extra items for group members to # the table of contents of the HTML help documentation and to the tree view. # The default value is: NO. # This tag requires that the tag GENERATE_HTMLHELP is set to YES. TOC_EXPAND = NO # If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and # QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that # can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help # (.qch) of the generated HTML documentation. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_QHP = NO # If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify # the file name of the resulting .qch file. The path specified is relative to # the HTML output folder. # This tag requires that the tag GENERATE_QHP is set to YES. QCH_FILE = # The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help # Project output. For more information please see Qt Help Project / Namespace # (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace). # The default value is: org.doxygen.Project. # This tag requires that the tag GENERATE_QHP is set to YES. QHP_NAMESPACE = # The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt # Help Project output. For more information please see Qt Help Project / Virtual # Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual- # folders). # The default value is: doc. # This tag requires that the tag GENERATE_QHP is set to YES. QHP_VIRTUAL_FOLDER = doc # If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom # filter to add. For more information please see Qt Help Project / Custom # Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- # filters). # This tag requires that the tag GENERATE_QHP is set to YES. QHP_CUST_FILTER_NAME = # The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the # custom filter to add. For more information please see Qt Help Project / Custom # Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- # filters). # This tag requires that the tag GENERATE_QHP is set to YES. QHP_CUST_FILTER_ATTRS = # The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this # project's filter section matches. Qt Help Project / Filter Attributes (see: # http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes). # This tag requires that the tag GENERATE_QHP is set to YES. QHP_SECT_FILTER_ATTRS = # The QHG_LOCATION tag can be used to specify the location of Qt's # qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the # generated .qhp file. # This tag requires that the tag GENERATE_QHP is set to YES. QHG_LOCATION = # If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be # generated, together with the HTML files, they form an Eclipse help plugin. To # install this plugin and make it available under the help contents menu in # Eclipse, the contents of the directory containing the HTML and XML files needs # to be copied into the plugins directory of eclipse. The name of the directory # within the plugins directory should be the same as the ECLIPSE_DOC_ID value. # After copying Eclipse needs to be restarted before the help appears. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_ECLIPSEHELP = NO # A unique identifier for the Eclipse help plugin. When installing the plugin # the directory name containing the HTML and XML files should also have this # name. Each documentation set should have its own identifier. # The default value is: org.doxygen.Project. # This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES. ECLIPSE_DOC_ID = org.doxygen.Project # If you want full control over the layout of the generated HTML pages it might # be necessary to disable the index and replace it with your own. The # DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top # of each HTML page. A value of NO enables the index and the value YES disables # it. Since the tabs in the index contain the same information as the navigation # tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. DISABLE_INDEX = NO # The GENERATE_TREEVIEW tag is used to specify whether a tree-like index # structure should be generated to display hierarchical information. If the tag # value is set to YES, a side panel will be generated containing a tree-like # index structure (just like the one that is generated for HTML Help). For this # to work a browser that supports JavaScript, DHTML, CSS and frames is required # (i.e. any modern browser). Windows users are probably better off using the # HTML help feature. Via custom style sheets (see HTML_EXTRA_STYLESHEET) one can # further fine-tune the look of the index. As an example, the default style # sheet generated by doxygen has an example that shows how to put an image at # the root of the tree instead of the PROJECT_NAME. Since the tree basically has # the same information as the tab index, you could consider setting # DISABLE_INDEX to YES when enabling this option. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. GENERATE_TREEVIEW = NO # The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that # doxygen will group on one line in the generated HTML documentation. # # Note that a value of 0 will completely suppress the enum values from appearing # in the overview section. # Minimum value: 0, maximum value: 20, default value: 4. # This tag requires that the tag GENERATE_HTML is set to YES. ENUM_VALUES_PER_LINE = 4 # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used # to set the initial width (in pixels) of the frame in which the tree is shown. # Minimum value: 0, maximum value: 1500, default value: 250. # This tag requires that the tag GENERATE_HTML is set to YES. TREEVIEW_WIDTH = 250 # If the EXT_LINKS_IN_WINDOW option is set to YES, doxygen will open links to # external symbols imported via tag files in a separate window. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. EXT_LINKS_IN_WINDOW = NO # Use this tag to change the font size of LaTeX formulas included as images in # the HTML documentation. When you change the font size after a successful # doxygen run you need to manually remove any form_*.png images from the HTML # output directory to force them to be regenerated. # Minimum value: 8, maximum value: 50, default value: 10. # This tag requires that the tag GENERATE_HTML is set to YES. FORMULA_FONTSIZE = 10 # Use the FORMULA_TRANPARENT tag to determine whether or not the images # generated for formulas are transparent PNGs. Transparent PNGs are not # supported properly for IE 6.0, but are supported on all modern browsers. # # Note that when changing this option you need to delete any form_*.png files in # the HTML output directory before the changes have effect. # The default value is: YES. # This tag requires that the tag GENERATE_HTML is set to YES. FORMULA_TRANSPARENT = YES # Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see # http://www.mathjax.org) which uses client side Javascript for the rendering # instead of using pre-rendered bitmaps. Use this if you do not have LaTeX # installed or if you want to formulas look prettier in the HTML output. When # enabled you may also need to install MathJax separately and configure the path # to it using the MATHJAX_RELPATH option. # The default value is: NO. # This tag requires that the tag GENERATE_HTML is set to YES. USE_MATHJAX = NO # When MathJax is enabled you can set the default output format to be used for # the MathJax output. See the MathJax site (see: # http://docs.mathjax.org/en/latest/output.html) for more details. # Possible values are: HTML-CSS (which is slower, but has the best # compatibility), NativeMML (i.e. MathML) and SVG. # The default value is: HTML-CSS. # This tag requires that the tag USE_MATHJAX is set to YES. MATHJAX_FORMAT = HTML-CSS # When MathJax is enabled you need to specify the location relative to the HTML # output directory using the MATHJAX_RELPATH option. The destination directory # should contain the MathJax.js script. For instance, if the mathjax directory # is located at the same level as the HTML output directory, then # MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax # Content Delivery Network so you can quickly see the result without installing # MathJax. However, it is strongly recommended to install a local copy of # MathJax from http://www.mathjax.org before deployment. # The default value is: http://cdn.mathjax.org/mathjax/latest. # This tag requires that the tag USE_MATHJAX is set to YES. MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest # The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax # extension names that should be enabled during MathJax rendering. For example # MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols # This tag requires that the tag USE_MATHJAX is set to YES. MATHJAX_EXTENSIONS = # The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces # of code that will be used on startup of the MathJax code. See the MathJax site # (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an # example see the documentation. # This tag requires that the tag USE_MATHJAX is set to YES. MATHJAX_CODEFILE = # When the SEARCHENGINE tag is enabled doxygen will generate a search box for # the HTML output. The underlying search engine uses javascript and DHTML and # should work on any modern browser. Note that when using HTML help # (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET) # there is already a search function so this one should typically be disabled. # For large projects the javascript based search engine can be slow, then # enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to # search using the keyboard; to jump to the search box use + S # (what the is depends on the OS and browser, but it is typically # , /