Skip to content

Commit 5f55c55

Browse files
kevinusheycran-robot
authored andcommitted
version 4.3.18
1 parent 4687929 commit 5f55c55

File tree

12 files changed

+90
-215
lines changed

12 files changed

+90
-215
lines changed

DESCRIPTION

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Package: RcppParallel
22
Type: Package
33
Title: Parallel Programming Tools for 'Rcpp'
4-
Version: 4.3.15
5-
Date: 2016-01-12
4+
Version: 4.3.18
65
Authors@R: c(
7-
person("JJ", "Allaire", role = c("aut", "cre"), email = "jj@rstudio.com"),
6+
person("JJ", "Allaire", role = c("aut"), email = "jj@rstudio.com"),
87
person("Romain", "Francois", role = c("aut", "cph")),
8+
person("Kevin", "Ushey", role = c("aut", "cre"), email = "kevin@rstudio.com"),
99
person("Gregory", "Vandenbrouck", role = "aut"),
1010
person("Marcus", "Geelnard", role = c("aut", "cph"),
1111
comment = "TinyThread library, http://tinythreadpp.bitsnbites.eu/"),
@@ -14,28 +14,31 @@ Authors@R: c(
1414
comment = "Intel TBB library, https://www.threadingbuildingblocks.org/"),
1515
person(family = "Microsoft", role = "cph")
1616
)
17-
Description: High level functions for doing parallel programming with 'Rcpp'.
18-
For example, the parallelFor() function can be used to convert the work of
19-
a standard serial "for" loop into a parallel one and the parallelReduce()
20-
function can be used for accumulating aggregate or other values.
21-
Suggests: Rcpp, RUnit
17+
Description: High level functions for parallel programming with 'Rcpp'.
18+
For example, the 'parallelFor()' function can be used to convert the work of
19+
a standard serial "for" loop into a parallel one and the 'parallelReduce()'
20+
function can be used for accumulating aggregate or other values.
21+
Depends: R (>= 3.0.2)
22+
Suggests: Rcpp, RUnit, knitr, rmarkdown
23+
LinkingTo: BH (>= 1.60.0-1)
2224
SystemRequirements: GNU make, Windows: cmd.exe and cscript.exe,
2325
Solaris: g++ is required
2426
License: GPL-2
2527
URL: http://rcppcore.github.io/RcppParallel,
2628
https://github.com/RcppCore/RcppParallel
2729
Collate: 'build.R' 'hooks.R' 'options.R'
2830
NeedsCompilation: yes
29-
Packaged: 2016-01-12 13:39:30 UTC; jjallaire
30-
Author: JJ Allaire [aut, cre],
31+
Packaged: 2016-04-20 19:03:10 UTC; kevin
32+
Author: JJ Allaire [aut],
3133
Romain Francois [aut, cph],
34+
Kevin Ushey [aut, cre],
3235
Gregory Vandenbrouck [aut],
3336
Marcus Geelnard [aut, cph] (TinyThread library,
3437
http://tinythreadpp.bitsnbites.eu/),
3538
RStudio [cph],
3639
Intel [aut, cph] (Intel TBB library,
3740
https://www.threadingbuildingblocks.org/),
3841
Microsoft [cph]
39-
Maintainer: JJ Allaire <jj@rstudio.com>
42+
Maintainer: Kevin Ushey <kevin@rstudio.com>
4043
Repository: CRAN
41-
Date/Publication: 2016-01-12 22:46:10
44+
Date/Publication: 2016-04-21 19:35:07

MD5

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
b2c6f4c9425d4975f3e4f0fcd9665273 *DESCRIPTION
2-
6684f7af533cedbca1dda7f22759016b *NAMESPACE
3-
d68de76ac3034457a9275f580f5c41ba *R/build.R
1+
43002986ff78249650380158a7472b4b *DESCRIPTION
2+
41a7ed7fb7d5974429d3047e3f9c0b91 *NAMESPACE
3+
5a1495bf7a04c7ba544b8d4c4c002d79 *R/build.R
44
2cd3bdbbfa4aa54c45e9413b93b1d1b6 *R/hooks.R
55
cb7259a31eb853ae93044c43fb1cf101 *R/options.R
66
e89153e4f767f8d3efb6c16896362e00 *inst/NEWS
77
5ff513fb33023d45231d644c6cd9e7ba *inst/include/RcppParallel.h
8-
565df1e5d841a44945867c15c102488e *inst/include/RcppParallel/Common.h
8+
d4ab7ad2384f150a32637a284e831bc0 *inst/include/RcppParallel/Common.h
99
713b5bf399a131309eadefd0d0924dd2 *inst/include/RcppParallel/RMatrix.h
10-
d38427a7601c227e4d2e19b03cf7badd *inst/include/RcppParallel/RVector.h
10+
7b0de08055d8aa0b21de7a1260083041 *inst/include/RcppParallel/RVector.h
1111
70ea4c28bcd015bcf2eef88bb1d45ced *inst/include/RcppParallel/TBB.h
1212
804a6a70a3eefef66c5700bd0fbbfe9b *inst/include/RcppParallel/Timer.h
1313
bc648370d52bcd49fafb79868128d370 *inst/include/RcppParallel/TinyThread.h
@@ -114,8 +114,6 @@ a81a9a9aa5599ac8e23deeabd7d38b19 *inst/include/tthread/tinythread.h
114114
0c44e73699a42f681fe19e2c97d387b0 *inst/presentations/header.tex
115115
8e6bce8f0fa9f6145727aeafac626ae2 *inst/presentations/images/big-data-big-machine-tweet.png
116116
c2423aacc0fa4e2f520477749c96e7ad *inst/presentations/rcpp_parallel_talk_jan2015.Rmd
117-
86f28ba828e0ab4aed07deda77b62963 *inst/presentations/rcpp_parallel_talk_jan2015.pdf
118-
414995ebb0c43800f8ba9230cb8b1cf3 *inst/presentations/rcpp_parallel_talk_jan2015.tex
119117
c7e35f89b0b1ffb309920b6596b13d62 *inst/tests/cpp/distance.cpp
120118
b9e5bbe1cadd17714288718fa225e49c *inst/tests/cpp/innerproduct.cpp
121119
7e29328ca6927d0297b4ff2d2f498305 *inst/tests/cpp/malloc.cpp
@@ -127,9 +125,9 @@ d201cb80099dba62315a39eaadc0eb67 *inst/tests/runit.innerproduct.R
127125
3b28677a7432e04b31b7cb91ca17855f *inst/tests/runit.sum.R
128126
bcb7cccabfbd3e3f24834d40d1f014a0 *inst/tests/runit.transform.R
129127
cee8e00decc99c13c084f3af8256c9df *man/RcppParallel-package.Rd
130-
383a5f06b6ff0e8183c1779a6a8c499a *man/RcppParallelLibs.Rd
128+
ede5dd7c3ef93a2587b0a8bb6e07e99b *man/RcppParallelFlags.Rd
131129
f3b91a97f7f2c4cbe658b0858d74017e *man/setThreadOptions.Rd
132-
f058fb703b049c996e079f56328b2da1 *src/Makevars
130+
d2d755fa825e45d2ee551b52641b2bf0 *src/Makevars
133131
32ee0b5805df0877ee7e81d97619ec96 *src/options.cpp
134132
226aad3e6ae47bda6bea91202848216b *src/tbb/CHANGES
135133
2c7f2caf277a3933e3acdf7f89d54cc1 *src/tbb/COPYING
@@ -190,7 +188,7 @@ fe50a0837adfa4d28a4eb54330b5b89d *src/tbb/build/vs2010/index.html
190188
3958791e4af00d096c9d6a11a891da08 *src/tbb/build/vs2010/tbbmalloc_proxy.vcxproj
191189
05383b27de90238f9e901658c1812a81 *src/tbb/build/vs2010/version_string.ver
192190
aeaa643fcb83517e92e762ed0b3b27fa *src/tbb/build/windows.cl.inc
193-
1749d820f760329bd1b76fcc6562cd40 *src/tbb/build/windows.gcc.inc
191+
818ec998d400f298e2fdf1d25f07f3bb *src/tbb/build/windows.gcc.inc
194192
56588cb3cca759312fad844b79846a95 *src/tbb/build/windows.icl.inc
195193
afc244fd609cbd6c7c35e1a8a0ac47b7 *src/tbb/build/windows.inc
196194
db4c2aeff8c80d7e311740d4aaefb8c8 *src/tbb/build/xbox360.cl.inc

NAMESPACE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
export(setThreadOptions)
22
export(defaultNumThreads)
33
export(RcppParallelLibs)
4+
export(CxxFlags)
5+
export(LdFlags)
6+
47

R/build.R

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,32 @@
11

22

3+
# Output the CXX flags. These flags are propagated to sourceCpp via the
4+
# inlineCxxPlugin (defined below) and to packages via a line in Makevars[.win]
5+
# like this:
6+
#
7+
# PKG_CXXFLAGS += $(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e "RcppParallel::CxxFlags()")
8+
#
9+
CxxFlags <- function() {
10+
cat(tbbCxxFlags())
11+
}
12+
13+
314
# Output the LD flags for building against TBB. These flags are propagated
415
# to sourceCpp via the inlineCxxPlugin (defined below) and to packages
5-
# via a line in Makevars.win like this:
16+
# via a line in Makevars[.win] like this:
617
#
718
# PKG_LIBS += $(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e "RcppParallel::LdFlags()")
819
#
9-
# Note that this is only required for Windows builds (on Linux and OS X no
10-
# explicit link to TBB is required).
11-
RcppParallelLibs <- function() {
20+
LdFlags <- function() {
1221
cat(tbbLdFlags())
1322
}
1423

24+
# alias for backward compatibility
25+
RcppParallelLibs <- function() {
26+
LdFlags()
27+
}
1528

16-
# Inline plugin used by sourceCpp to link to the TBB library
29+
# Inline plugin used by sourceCpp.
1730
inlineCxxPlugin <- function() {
1831
list(
1932
env = list(
@@ -22,15 +35,19 @@ inlineCxxPlugin <- function() {
2235
),
2336
includes = "#include <RcppParallel.h>",
2437
LinkingTo = "RcppParallel",
25-
body = function( x ) x,
38+
body = function(x) x,
2639
Depends = "RcppParallel"
2740
)
2841
}
2942

3043
tbbCxxFlags <- function() {
31-
flags <- "$(CXX1XSTD)"
44+
45+
flags <- c()
46+
47+
# opt-in to TBB on Windows
3248
if (Sys.info()['sysname'] == "Windows")
3349
flags <- paste(flags, "-DRCPP_PARALLEL_USE_TBB=1")
50+
3451
flags
3552
}
3653

inst/include/RcppParallel/Common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ struct Worker
2121
virtual void operator()(std::size_t begin, std::size_t end) = 0;
2222

2323
// disable copying and assignment
24+
private:
2425
Worker(const Worker&);
2526
void operator=(const Worker&);
2627
};

inst/include/RcppParallel/RVector.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class RVector {
4242
inline const_iterator begin() const { return begin_; }
4343
inline const_iterator end() const { return end_; }
4444

45+
inline std::size_t size() const { return end_ - begin_; }
4546
inline std::size_t length() const { return end_ - begin_; }
4647

4748
inline T& operator[](std::size_t i) {
-190 KB
Binary file not shown.

inst/presentations/rcpp_parallel_talk_jan2015.tex

Lines changed: 0 additions & 151 deletions
This file was deleted.

man/RcppParallelFlags.Rd

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
\name{RcppParallelFlags}
2+
\alias{RcppParallelLibs}
3+
\alias{LdFlags}
4+
\alias{CxxFlags}
5+
\title{
6+
Compilation flags for RcppParallel
7+
}
8+
\description{
9+
Output the compiler or linker flags required to build against RcppParallel.
10+
}
11+
\usage{
12+
CxxFlags()
13+
LdFlags()
14+
RcppParallelLibs()
15+
}
16+
17+
\details{
18+
These functions are typically called from \code{Makevars} as follows:
19+
20+
\code{PKG_LIBS += $(shell "${R_HOME}/bin/Rscript/" -e "RcppParallel::LdFlags()")}
21+
22+
}
23+
24+
\value{
25+
Returns \code{NULL} invisibly. The function is not called for it's
26+
return value rather for the side effect of outputting the flags.
27+
}
28+

man/RcppParallelLibs.Rd

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)