Commit Graph
166 Commits
Author SHA1 Message Date
Benjamin Worpitz 07df9dd360 Always define BOOST_COMP_NVCC instead of BOOST_COMP_NVCC_EMULATED (#84)
Currently BOOST_COMP_NVCC is never set but always BOOST_COMP_NVCC_EMULATED
because the NVCC preprocessor emulates the host compiler being used
(gcc/clang/msvc/...) which are detected earlier.

The nvcc compilation process is somewhat special as can be read here:
https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html#cuda-compilation-trajectory
The nvcc compiler precompiles the input two times. Once for the device code
being compiled by the cicc device compiler and once for the host code
compiled by the real host compiler. NVCC uses gcc/clang/msvc/...
depending on the host compiler being set on the command line.

Predef (as a preprocessor only lib) detects the one doing the preprocessing
as compiler and expects it to be the one doing the real compilation.
This is not true for NVCC which is only doing the preprocessing and which
is using another compiler for parts of its work. So for NVCC it should be
allowed to set BOOST_COMP_NVCC additionally to the already detected host
compiler because both is true: It is gcc/clang/... compiling the code, but it
is also NVCC doing th preprocessing and adding some other quirks you may
want to detect.

This behavior is similar to what boost config is doing in `select_compiler_config.hpp`.
There the NVCC detection is not handled as a real compiler (part of the
#if-#elif) but as additional option before the real compiler.
2018-08-30 14:41:44 -05:00
Rene Rivera 759400b413 Rebase from hash-predef source. 2018-08-25 23:36:20 -05:00
Rene Rivera 560ff5298e Bump version, add history. 2018-06-23 21:37:05 -05:00
Tim Blechmann 5d8818ddcb architecture: add support for __ARM_ARCH macro (#74)
gcc-6 defines __ARM_ARCH
2018-06-12 07:40:29 -05:00
Benjamin Worpitz 11569d270c add detection for PTX architecture (#73) 2018-06-12 07:39:43 -05:00
Benjamin Worpitz 7a4ca9dc90 add nvcc compiler detection (#72) 2018-05-13 10:22:00 -05:00
Benjamin Worpitz e8681a9b37 Add support for detecting CUDA (#71)
* add support for detecting CUDA
* add test for new make macro
2018-05-13 10:21:13 -05:00
Peter Kolbus 9e31c6455c Remove undefined BOOST_ARCH_AMD64 (#75)
Remove reference to BOOST_ARCH_AMD64 as it has not been defined since commit b10e3490e.
2018-05-13 10:19:21 -05:00
James E. King, III 5e8f5d5a4b properly obtain the FreeBSD version (BOOST_OS_BSD_FREE) (#69) 2017-11-10 07:04:25 -06:00
James E. King, III 74f88005cc rename library/c/cloudlibc.h to library/c/cloudabi.h (#68)
fix typo in cloudlibc detection
2017-11-09 22:48:35 -06:00
James E. King, III 4a230ebe85 add detection for OpenBSD 5.x and 6.x (#67)
This fixes #66
2017-11-08 23:01:35 -06:00
Rene Rivera e31d12f25d Fix typo in header guard. 2017-10-25 12:32:20 -05:00
James E. King, III 6f8a9ae440 platform detection for CloudABI with cloudlibc detection (#65) 2017-10-23 13:54:01 -05:00
Rene Rivera a7cdea8faf Merge branch 'develop' of https://github.com/boostorg/predef into
develop

Conflicts:
	include/boost/predef/platform/windows_runtime.h
	include/boost/predef/platform/windows_uwp.h
2017-10-23 09:34:04 -05:00
Rene Rivera 1c0b55c2f9 Some tweak for 1.7 release.
* Bump version to 1.7
* Tweak docs for UWP detection.
* Add 1.7 history items.
2017-10-23 09:25:43 -05:00
James E. King, III 0ab200d19e make BOOST_PLAT_WINDOWS_DESKTOP available in older SDKs for backwards compatibility (#64) 2017-10-18 07:00:02 -05:00
James E. King, III 7c17b932e4 detect mingw32 and mingw64 as separate entities (#61) 2017-10-16 18:41:33 -05:00
Roki de79c6d341 fix typo s/BOOST_ARCH_PARISK/BOOST_ARCH_PARISC (#63) 2017-10-11 08:16:56 -05:00
James E. King, III bca18299d2 correct Windows UWP platform detection (#57) 2017-10-03 20:36:17 -05:00
Rene Rivera 6a24a3a4bb Changes for version 1.6. 2017-06-05 09:14:37 -05:00
Rene Rivera 9afb15401b Handle Intel version 9999 == 12.1.0 (fixes #38). 2017-06-05 09:09:13 -05:00
Rene Rivera 0d9d5591da Merge branch 'develop' of https://github.com/boostorg/predef.git into develop 2017-06-01 22:31:30 -05:00
Rene Rivera db499c07df Add WORKAROUND style definitions for public use. 2017-06-01 22:31:09 -05:00
Minmin Gong 4c822c49c2 Adds support for MSVC ARM64 target. 2017-06-01 00:08:56 -07:00
Rene Rivera f109e20ad1 Fix missing non-detection test for new iOS platform. 2017-05-28 23:31:06 -05:00
Rene Rivera d81ab5cc34 Merge pull request #49 from ruslo/pr.ios
Detect iOS simulator/device
2017-05-28 21:20:00 -05:00
Ruslan Baratov ec6c26ef68 Detect iOS simulator/device 2017-05-22 12:28:47 +03:00
Rene Rivera 0bb6e754cb Fix header guard to correct type of predef.
Addresses PR #48 from @ruslo (Ruslan Baratov) but with shorter "PLAT" to
match the other platform headers.
2017-05-21 16:37:34 -05:00
Rene Rivera 0d56819d68 Switch VS versions post 2015 to CL version. 2017-03-17 11:11:30 -05:00
Rene Rivera 822d09f19b Fix Intel C/C++ compiler version specification.
Add `BOOST_VERSION_NUMBER_MAJOR`, `BOOST_VERSION_NUMBER_MINOR`,
`BOOST_VERSION_NUMBER_PATCH` macros to extract components from valid
version numbers.
2017-01-03 22:07:48 -06:00
Charly Chevalier 6fcc7bb1a2 Fix SIMD documentation for AMD family 2016-06-02 11:31:57 +02:00
Rene Rivera ee38c7c65d Update lib version to 1.4.1 for replease. 2016-02-17 09:45:31 -06:00
Adam Wulkiewicz 1867ea911c Suppress 'undefined macro' warnings. 2016-01-25 14:55:36 +01:00
Charly Chevalier c4bebf10ef Fix SIMD documentation for FMA4 2015-12-08 11:14:53 +01:00
Charly Chevalier 1b27540a96 Fix redefinition of BOOST_HW_SIMD for x86 (AMD) 2015-12-08 11:14:46 +01:00
Charly Chevalier 8f5fcf9bdf Fix typo in SIMD predefs ocumentation (x86 -> X86) 2015-12-08 10:46:05 +01:00
Chandimal Hamparawa 177a6ca792 fixed a typo in BOOST_OS_CYGWIN macro 2015-10-20 14:23:12 +05:30
VemundH 8b5c2581dc fix typo AVALIABLE -> AVAILABLE 2015-09-13 14:42:12 +02:00
Ruslan Baratov acb6b9b8bf Fix misprint: s,__cpluplus,__cplusplus, 2015-08-09 17:45:31 +03:00
Rene Rivera bfac404a0f Bump to version 1.4 for next release. Switched BBv2 check support to use
the compile only check utility to address cross-compile use cases.
2015-08-06 20:51:56 -05:00
Rene Rivera 0e69791f69 Merge pull request #31 from jfalcou/simd_support
Add support, macros and versionning for SIMD extensions
2015-08-06 20:37:23 -05:00
Charly Chevalier 3dc66cd71f Remove extra check (of MSVC version) for FMA/AVX/AVX2 for now 2015-08-04 11:57:06 +02:00
Charly Chevalier 1af46e66df Add missing _X86_AMD detection for BOOST_HW_SIMD + Unique name 2015-07-31 10:53:45 +02:00
Charly Chevalier 7fefba479c Update BOOST_HW_SIMD_X86_MIC_VERSION version number (max -> 9.0.0) 2015-07-21 20:29:25 +02:00
Charly Chevalier 93833f6e9e Fix wrong version numbers 2015-07-21 20:04:40 +02:00
Charly Chevalier 5576494500 Add missing BOOST_HW_SIMD_X86_AMD_AVAILABLE predef 2015-07-21 14:56:12 +02:00
Charly Chevalier 10601dbaf8 Includes clean up 2015-07-21 14:55:56 +02:00
Charly Chevalier e566ad33ce Reorder x86 AMD SIMD extension detection 2015-07-21 14:53:12 +02:00
Charly Chevalier 2ae1123abf x86 -> X86 (in macro names) 2015-07-21 14:51:58 +02:00
Charly Chevalier 0b90b9f19b Add missing ppc/versions.h to ppc.h 2015-07-21 14:51:31 +02:00