Commit Graph

325 Commits

Author SHA1 Message Date
Mark Dewing d149380b7d Initial support for PGI compiler 2018-11-02 15:56:44 -05:00
Ye Luo 2e908cd8f3 More language correction. 2018-10-31 16:34:21 -05:00
Mark Dewing 2ab0838130 Remove unused code for C++14 check. 2018-10-30 14:12:35 -05:00
Mark Dewing 9afbfa74d6 Test that a C++14 library is configured.
Also try to give some advice based on which compiler is detected.
2018-10-25 17:22:07 -05:00
Mark Dewing 4122b264b9 Flip the switch to require C++ 14 2018-10-25 13:27:00 -05:00
Mark Dewing b3133b60d3 Fix compile on BG/Q (Mira)
The required minimum cmake version also sets the policies according to that
cmake version.  The CMP0060 policy changed in cmake 3.3.

This policy change caused the libraries returned from finding the HDF library
to fail to link, because CMake previously altered the form on the link line,
and the new behavior does not.

The policy cannot be set in the toolchain file because of warnings related
to policy scope and CMP0011.
2018-10-23 21:31:53 +00:00
Mark Dewing d29e5af0c7 Increase cmake minimum to 3.6.0.
Remove the unneeded cmake version tests.
Switch to the cmake mechanism for specifying the C++11 standard
3.6.0 is the first version that gets the C++11 flags correct for the Intel compiler

Addresses #832
2018-10-19 17:03:50 -05:00
Paul Kent f5c7747afb Correct spelling errors across entire source 2018-10-10 19:58:16 -04:00
Ye Luo 0b8d1662f5 Cache ENABLE_SOA in CMakeLists and print in header 2018-10-08 10:54:48 -05:00
Ye Luo 3c40bfd1fb Remove QMC_SK_USE_RECURSIVE. 2018-09-01 17:15:14 -05:00
Paul Kent 12a520fe84 Changelog for v3.5.0 2018-08-01 15:45:56 -04:00
Peter Doak 4504d64238 will drop the deprecated and inefficient link_libraries another day 2018-07-05 19:45:59 -04:00
Peter Doak a77ed4f2a6 Unbreaking CXX11 check. Needed appleclang for cuda and its horrible.
But that is a different issue.
2018-07-05 19:21:32 -04:00
Peter Doak 61a5c500da find the library NVTX library in a portable way 2018-07-05 19:05:54 -04:00
Ye Luo b58a3d1ae1
Merge branch 'develop' into addnvtx 2018-07-05 12:44:44 -05:00
Jeff Larkin 3d53e4336b Finished renaming USE_NVTX to USE_NVTX_API 2018-07-05 10:26:29 -04:00
Jeff Larkin 6c3467bc96 Changed USE_NVTX to USE_NVTX_API and removed add_definition 2018-07-05 10:25:20 -04:00
Jeff Larkin c241e79c61 Fixing feedback from #912 2018-07-05 08:52:25 -04:00
Jeff Larkin 4e4f6439af Added USE_NVTX build macro to add necessary library for building against NVIDIA nvToolsExt library 2018-07-03 13:29:04 -04:00
Peter Doak 437b5c363a XRay handling move to clang compilers. This removes the cache var
when using another compiler which is good. You'll get an used warning
if you use them with another compiler.
2018-06-20 08:58:46 -04:00
Peter Doak d528fbdd29 preventing non clang builds from attempting to activate llvm-xray profiling 2018-06-20 08:58:46 -04:00
Peter Doak 6e7af7e79e preserving CUDA_PROPAGATE_HOST_FLAGS behavior when not using clang 2018-06-20 08:58:46 -04:00
Peter Doak 9ae0d9222e adding profiling example 2018-06-20 08:58:46 -04:00
Peter Doak 3ea9660ae3 Found more cpu to cuda call to trace. Made Macro
Not entirely happy with gcc style attributes.
2018-06-20 08:58:45 -04:00
Peter Doak d933aedc2f goal of this llvm4_cuda build is instrumentation
when building with nvcc and while running nvprof
2018-06-20 08:58:45 -04:00
Peter Doak 0f41a5e300 With llvm-4.0.1 build with spack this avoided libc++
libstdc++ is all that works for nvcc (I do think later libc++'s can
work but not 4.0.1's)
This cmake line worked on oxygen
rm -rf *; CXXFLAGS='-stdlib=libstdc++' LDFLAGS='-stdlib=libstdc++' cmake -DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH} -DCMAKE_CXX_COMPILER=mpic++ -DCMAKE_C_COMPILER=mpicc -DENABLE_MKL=1 -DMKL_ROOT="/opt/intel2018/mkl" -GNinja -DQMC_MPI=1 -DQMC_CUDA=1 -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-9.1 -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCUDA_NVCC_FLAGS="-arch=sm_60;-Drestrict=__restrict__;-DNO_CUDA_MAIN;-O3" -DHDF5_ROOT=/data/epd/spack/opt/spack/linux-rhel7-x86_64/gcc-4.8.5/hdf5-1.10.2-qqmot24bg6uetn3xhpxjlwafvxr4p5pp/ ..
2018-06-20 08:58:45 -04:00
Peter Doak 65aa6b5337 Insuring we check for and use mkl fftw3.h
The diffs are big but primarily I'm moving around the code so the
intel and non-intel paths are less divergent.
Main fix is to check for ffth3.h in mkl/include/fftw, if it is not
there we do not add that include path.
2018-06-07 16:05:12 -04:00
Jaron Krogel 2045395c92 nexus: remove redundant example ctests and fix failing nexus settings ctest 2018-06-06 11:53:10 -04:00
Peter Doak 2e49ee88c8 removing editorial comment 2018-05-24 14:07:38 -04:00
Peter Doak 5c30665b8b ninja requires this policy to operator 2018-05-24 14:07:38 -04:00
Mark Dewing 3d63a38a1e
Merge branch 'develop' into nxtest 2018-04-27 14:22:00 -05:00
Jaron Krogel e60c6df54d integrate ntest with ctest 2018-04-27 13:11:18 -04:00
Paul Kent 44bc755c62 Remove all old Sandbox files. Move miniapp files to Sandbox. Update source includes and cmake consistently 2018-04-06 17:42:51 -04:00
Paul Kent 34117450dc Remove GUI mentions 2018-04-03 16:14:56 -04:00
Graham Lopez e4b521bc1f
Merge branch 'develop' into fix-BGQ 2018-03-26 11:49:51 -04:00
Mark Dewing bcde41b561
Merge branch 'develop' into move-cxx11-checking 2018-03-26 09:21:55 -05:00
Ye Luo f7dd9753aa Move C++11 verification more ahead for robustness. 2018-03-25 22:10:05 -05:00
Ye Luo 3edd418838 Rename ENABLE_OUTSIDE_MKL to ENABLE_MKL. 2018-03-25 21:53:23 -05:00
Ye Luo de6120cf9a Fix the case CMAKE_BUILD_TYPE=None. 2018-03-25 16:14:54 -05:00
Peter Doak 8566b52d88 didn't like ; in flag output 2018-03-22 10:23:28 -04:00
Peter Doak a2fdc6f0bd Better ouput of project level flags. Targets can change these. 2018-03-22 10:11:33 -04:00
Peter Doak 4ed1339207 cleanup and clarity per Ye's review 2018-03-21 18:49:57 -04:00
Peter Doak 3031f9d7f3 Well this should protect Rhea, why do policy warnings break build? 2018-03-21 14:03:29 -04:00
Peter Doak 31301f81e6 Message not test was backwards 2018-03-21 13:19:38 -04:00
Peter Doak 0bc0f94cc4 protecting cray build 2018-03-20 15:19:35 -04:00
Peter Doak be4108bffd CMP0056 allows further simplification 2018-03-20 14:39:12 -04:00
Peter Doak af39813246 with CMP0056 set ordering of C++11 doesn't need to be changed?
also annoying trailing whitespace eliminated from CMakeLists.txt
2018-03-20 14:25:12 -04:00
Peter Doak 6016e798b5 Working for llvm 5 on high sierra with
cmake -E env BOOST_ROOT="/Users/epd/codes/boost_1_66_0" cmake
-DTEST_MAX_PROCS=4 -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=mpicc
-DCMAKE_CXX_COMPILER=mpic++
-DCMAKE_SHARED_LINKER_FLAGS="-L/usr/local/opt/llvm/lib
-Wl,-rpath,/usr/local/opt/llvm/lib --stdlib=libc++"
-DCMAKE_EXE_LINKER_FLAGS="-L/usr/local/opt/llvm/lib
-Wl,-rpath,/usr/local/opt/llvm/lib --stdlib=libc++"
-DCMAKE_INSTALL_PREFIX=/Users/epd/local/qmcpack
-DMKL_ROOT="/opt/intel/compilers_and_libraries_2018.1.126/mac/mkl"
-DQMC_MPI=1 -DQMC_OMP=1 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DBUILD_PPCONVERT=1 -DENABLE_OUTSIDE_MKL=1 ..
2018-03-16 13:28:15 -04:00
Peter Doak cad3da0bdb beginning of llvm 5 support with no env paths required 2018-03-16 12:48:25 -04:00
Paul Kent 8fd89e8291 Increase version number, update release nodes 2018-01-29 13:10:17 -05:00