CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
98 lines
3.6 KiB
C
98 lines
3.6 KiB
C
/*
|
|
* Copyright 2008-2022 NVIDIA Corporation
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
/*! \file version.h
|
|
* \brief Compile-time macros encoding Thrust release version
|
|
*
|
|
* <thrust/version.h> is the only Thrust header that is guaranteed to
|
|
* change with every thrust release.
|
|
*
|
|
* It is also the only header that does not cause THRUST_HOST_SYSTEM
|
|
* and THRUST_DEVICE_SYSTEM to be defined. This way, a user may include
|
|
* this header and inspect THRUST_VERSION before programmatically defining
|
|
* either of these macros herself.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <thrust/detail/config/config.h> // IWYU pragma: export
|
|
|
|
#if defined(_CCCL_IMPLICIT_SYSTEM_HEADER_GCC)
|
|
# pragma GCC system_header
|
|
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_CLANG)
|
|
# pragma clang system_header
|
|
#elif defined(_CCCL_IMPLICIT_SYSTEM_HEADER_MSVC)
|
|
# pragma system_header
|
|
#endif // no system header
|
|
|
|
#if _THRUST_HAS_DEVICE_SYSTEM_STD
|
|
# include _THRUST_LIBCXX_INCLUDE(version) // IWYU pragma: export
|
|
#endif
|
|
|
|
// This is the only Thrust header that is guaranteed to
|
|
// change with every Thrust release.
|
|
//
|
|
// THRUST_VERSION % 100 is the sub-minor version
|
|
// THRUST_VERSION / 100 % 1000 is the minor version
|
|
// THRUST_VERSION / 100000 is the major version
|
|
//
|
|
// Because this header does not #include <thrust/detail/config.h>,
|
|
// it is the only Thrust header that does not cause
|
|
// THRUST_HOST_SYSTEM and THRUST_DEVICE_SYSTEM to be defined.
|
|
|
|
/*! \def THRUST_VERSION
|
|
* \brief The preprocessor macro \p THRUST_VERSION encodes the version
|
|
* number of the Thrust library as MMMmmmpp.
|
|
*
|
|
* \note THRUST_VERSION is formatted as `MMMmmmpp`, which differs from `CCCL_VERSION` that uses `MMMmmmppp`.
|
|
*
|
|
* <tt>THRUST_VERSION % 100</tt> is the sub-minor version.
|
|
* <tt>THRUST_VERSION / 100 % 1000</tt> is the minor version.
|
|
* <tt>THRUST_VERSION / 100000</tt> is the major version.
|
|
*/
|
|
#define THRUST_VERSION 200805 // macro expansion with ## requires this to be a single value
|
|
|
|
/*! \def THRUST_MAJOR_VERSION
|
|
* \brief The preprocessor macro \p THRUST_MAJOR_VERSION encodes the
|
|
* major version number of the Thrust library.
|
|
*/
|
|
#define THRUST_MAJOR_VERSION (THRUST_VERSION / 100000)
|
|
|
|
/*! \def THRUST_MINOR_VERSION
|
|
* \brief The preprocessor macro \p THRUST_MINOR_VERSION encodes the
|
|
* minor version number of the Thrust library.
|
|
*/
|
|
#define THRUST_MINOR_VERSION (THRUST_VERSION / 100 % 1000)
|
|
|
|
/*! \def THRUST_SUBMINOR_VERSION
|
|
* \brief The preprocessor macro \p THRUST_SUBMINOR_VERSION encodes the
|
|
* sub-minor version number of the Thrust library.
|
|
*/
|
|
#define THRUST_SUBMINOR_VERSION (THRUST_VERSION % 100)
|
|
|
|
/*! \def THRUST_PATCH_NUMBER
|
|
* \brief The preprocessor macro \p THRUST_PATCH_NUMBER encodes the
|
|
* patch number of the Thrust library.
|
|
* Legacy; will be 0 for all future releases.
|
|
*/
|
|
#define THRUST_PATCH_NUMBER 0
|
|
|
|
#if _THRUST_HAS_DEVICE_SYSTEM_STD
|
|
static_assert(THRUST_MAJOR_VERSION == CCCL_MAJOR_VERSION, "");
|
|
static_assert(THRUST_MINOR_VERSION == CCCL_MINOR_VERSION, "");
|
|
static_assert(THRUST_SUBMINOR_VERSION == CCCL_PATCH_VERSION, "");
|
|
#endif
|