-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b09c887
commit d826b67
Showing
2 changed files
with
36 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,6 @@ | |
# | ||
# Provided by NVIDIA under the same license as the associated Thrust library. | ||
# | ||
# Reply-To: Allison Piper <[email protected]> | ||
# | ||
# ***************************************************************************** | ||
# ** The following is a short reference to using Thrust from CMake. ** | ||
# ** For more details, see the README.md in the same directory as this file. ** | ||
|
@@ -62,18 +60,7 @@ | |
# IGNORE_CUB_VERSION # Skip configure-time and compile-time CUB version checks | ||
# ) | ||
# | ||
# # DISPATCH options [Advanced]: | ||
# # | ||
# # Controls how Thrust handles large (>2^32 element) inputs. The default is `Dynamic`. | ||
# # This only applies when DEVICE=CUDA. | ||
# # | ||
# # - `Dynamic` lets Thrust choose the index type based on input size, allowing | ||
# # large inputs and optimal performance at the cost of increased compile time and binary size, | ||
# # as Thrust will compile each kernel twice, once for 32 bit and once for 64 bit. | ||
# # - `Force32bit` forces Thrust to use a 32 bit offset type. This improves compile time and | ||
# # binary size but limits the input size. | ||
# # - `Force64bit` forces Thrust to use a 64 bit offset type. This improves compile time and | ||
# # binary size and allows large input sizes. However, it might degrade runtime performance. | ||
# # DISPATCH options (See README): | ||
# thrust_create_target(TargetName DISPATCH Dynamic) | ||
# thrust_create_target(TargetName DISPATCH Force32bit) | ||
# thrust_create_target(TargetName DISPATCH Force64bit) | ||
|
@@ -188,7 +175,7 @@ function(thrust_create_target target_name) | |
_thrust_set_if_undefined(TCT_DISPATCH Dynamic) | ||
_thrust_set_if_undefined(TCT_HOST_OPTION THRUST_HOST_SYSTEM) | ||
_thrust_set_if_undefined(TCT_DEVICE_OPTION THRUST_DEVICE_SYSTEM) | ||
_thrust_set_if_undefined(TCT_DISPATCH_OPTION THRUST_DISPATCH_TYPE) | ||
_thrust_set_if_undefined(TCT_DISPATCH_TYPE THRUST_DISPATCH_TYPE) | ||
_thrust_set_if_undefined(TCT_HOST_OPTION_DOC "Thrust host system: ${THRUST_HOST_SYSTEM_OPTIONS}") | ||
_thrust_set_if_undefined(TCT_DEVICE_OPTION_DOC "Thrust device system: ${THRUST_DEVICE_SYSTEM_OPTIONS}") | ||
_thrust_set_if_undefined(TCT_DISPATCH_OPTION_DOC "Thrust dispatch type: ${THRUST_DISPATCH_TYPE_OPTIONS}") | ||
|