Skip to content

Commit 63d847b

Browse files
committed
Various fixes to the new CMake build system branch to keep the old legacy build
system working.
1 parent 17edfb3 commit 63d847b

File tree

5 files changed

+29
-27
lines changed

5 files changed

+29
-27
lines changed

CHANGELOG

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ Summary
1111
objects, which can be waited upon to synchronize with the completion of the
1212
parallel operation.
1313

14+
Breaking API Changes
15+
Synchronous Thrust algorithms now block until all of their operations have
16+
completed. Use the new asynchronous Thrust algorithms for non-blocking
17+
behavior.
18+
1419
New Features
1520
`thrust::event` and `thrust::future<T>`, uniquely-owned asynchronous handles consisting of a state (ready or not ready), content (some value; for `thrust::future` only), and an optional set of objects that should be destroyed only when the future's value is ready and has been consumed.
1621
The design is loosely based on C++11's `std::future`.
@@ -196,7 +201,7 @@ Bug Fixes
196201
1777043 `complex` does not work with `sequence`.
197202

198203
#######################################
199-
# Thrust v1.9.1-2 (CUDA 9.1) #
204+
# Thrust v1.9.1 (CUDA 9.1) #
200205
#######################################
201206

202207
Summary
@@ -209,7 +214,7 @@ Bug Fixes
209214
1904217 Allow callables that take non-const refs to be used with reduce and scan.
210215

211216
#######################################
212-
# Thrust v1.9.0-4 (CUDA 9.0) #
217+
# Thrust v1.9.0 (CUDA 9.0) #
213218
#######################################
214219

215220
Summary
@@ -242,14 +247,14 @@ Bug Fixes
242247
Acknowledgments
243248
Thanks to Manuel Schiller for contributing a C++11 based enhancement
244249
regarding the deduction of functor return types, improving the performance
245-
of thrust::unique and implementing transform_output_iterator.
250+
of `thrust::unique` and implementing `thrust::transform_output_iterator`.
246251
Thanks to Thibault Notargiacomo for the implementation of move semantics for
247252
the vector_base based class.
248253
Thanks to Duane Merrill for developing CUB and helping to integrate it into
249254
Thrust's backend.
250255

251256
#######################################
252-
# Thrust v1.8.3-2 (CUDA 8.0) #
257+
# Thrust v1.8.3 (CUDA 8.0) #
253258
#######################################
254259

255260
Summary
@@ -309,9 +314,6 @@ Summary
309314
request a CUDA stream for kernels launched during algorithm execution. Finally, new CUDA algorithm
310315
implementations provide substantial performance improvements.
311316

312-
Breaking API Changes
313-
None.
314-
315317
New Features
316318
Algorithms in CUDA __device__ code
317319
Thrust algorithms may now be invoked from CUDA __device__ and __host__ __device__ functions.

Makefile

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ ifneq ($(TEST_EXAMPLES),)
116116
# Empty PROJECTS.
117117
PROJECTS :=
118118

119-
# Populate PROJECTS with examples.
119+
# Populate PROJECTS with examples.
120120
include $(THRUST_MKDIR)/examples.mk
121121

122122
# Once PROJECTS is populated with examples, re-add the previous projects.
@@ -133,25 +133,25 @@ endif
133133

134134
VERSION_FLAG :=
135135
ifeq ($(OS),$(filter $(OS),Linux Darwin))
136-
ifdef USEPGCXX # PGI
137-
VERSION_FLAG := -V
138-
else
139-
ifdef USEXLC # XLC
140-
VERSION_FLAG := -qversion
141-
else # GCC, ICC or Clang AKA the sane ones.
142-
VERSION_FLAG := --version
143-
endif
144-
endif
136+
ifdef USEPGCXX # PGI
137+
VERSION_FLAG := -V
138+
else
139+
ifdef USEXLC # XLC
140+
VERSION_FLAG := -qversion
141+
else # GCC, ICC or Clang AKA the sane ones.
142+
VERSION_FLAG := --version
143+
endif
144+
endif
145145
else ifeq ($(OS),win32) # MSVC
146-
# cl.exe run without any options will print its version info and exit.
147-
VERSION_FLAG :=
146+
# cl.exe run without any options will print its version info and exit.
147+
VERSION_FLAG :=
148148
endif
149149

150150
CCBIN_ENVIRONMENT :=
151151
ifeq ($(OS), QNX)
152-
# QNX's GCC complains if QNX_HOST and QNX_TARGET aren't defined in the
153-
# environment.
154-
CCBIN_ENVIRONMENT := QNX_HOST=$(QNX_HOST) QNX_TARGET=$(QNX_TARGET)
152+
# QNX's GCC complains if QNX_HOST and QNX_TARGET aren't defined in the
153+
# environment.
154+
CCBIN_ENVIRONMENT := QNX_HOST=$(QNX_HOST) QNX_TARGET=$(QNX_TARGET)
155155
endif
156156

157157
$(info #### CCBIN : $(CCBIN))

doc/branching.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ versions don't directly map to any CUDA Toolkit version.
1616
| 1.9.4 | 10.1 |
1717
| 1.9.3 | 10.0 |
1818
| 1.9.2 | 9.2 |
19-
| 1.9.1-2 | 9.1 |
20-
| 1.9.0-4 | 9.0 |
21-
| 1.8.3-2 | 8.0 |
19+
| 1.9.1 | 9.1 |
20+
| 1.9.0 | 9.0 |
21+
| 1.8.3 | 8.0 |
2222
| 1.8.2 | 7.5 |
2323
| 1.8.1 | 7.0 |
2424
| 1.8.0 | *N/A* |

generate_mk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def Glob(pattern, directory,exclude='\B'):
3333
def generate_test_mk(mk_path, test_path, group, TEST_DIR):
3434
print 'Generating makefiles in "'+mk_path+'" for tests in "'+test_path+'"'
3535
src_cu = Glob("*.cu", test_path, ".*testframework.cu$")
36-
src_cxx = Glob("*.cpp", test_path, ".*testframework.cpp$")
36+
src_cxx = Glob("*.cpp", test_path)
3737
src_cu.sort();
3838
src_cxx.sort();
3939
src_all = src_cu + src_cxx;

internal/build/testframework.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
STATIC_LIBRARY := testframework
22

33
SRC_PATH := $(ROOTDIR)/thrust/testing/
4-
BUILD_SRC := testframework.cpp
4+
BUILD_SRC := unittest/testframework.cu
55

66
CUSRC := unittest/cuda/testframework.cu
77
$(CUSRC).CUDACC_FLAGS := -I$(ROOTDIR)/thrust/testing/cuda/

0 commit comments

Comments
 (0)