This repository has been archived by the owner on Dec 21, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
[REVIEW] Replace function #106
Open
gcca
wants to merge
36
commits into
rapidsai:master
Choose a base branch
from
BlazingDB:replace-function
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
350dafc
[replace-function] API definition
gcca 8f805d9
[replace-function] Merged from master
gcca 5a8b93a
[replace-function] Add first implementation
gcca adf537d
[replace-function] Add replacement by lower bound
gcca 3214b08
[replace-function] Update typed unit test
gcca 3935048
[replace-function] Update to replace on unordered column
gcca a4a7383
[replace-function] Merged from master
gcca f5afc31
[replace-function] Update class replace functor
gcca ef3f382
[replace-function] Common test fixtures
gcca 003bd9d
created larger scale test for replace funtion
5553c67
[replace-function] Replace kernel
gcca 0f3891d
[replace-function] Check device attribute status
gcca 26c522a
[replace-function] Move ptr construction (invariant)
gcca 2a7a023
[replace-function] Add replace benchmark against cpu
gcca 200da31
Merge branch 'master' into replace-function
a2fa767
moved replace benchmark to bench folder. Added comments and more test…
cc3beca
[replace-function] API definition
gcca ef4de00
[replace-function] Add first implementation
gcca 0b62cd9
[replace-function] Add replacement by lower bound
gcca 5f2c338
[replace-function] Update typed unit test
gcca 35c765d
[replace-function] Update to replace on unordered column
gcca d3e50d3
[replace-function] Update class replace functor
gcca 7c12b1a
[replace-function] Common test fixtures
gcca c01252b
created larger scale test for replace funtion
321656e
[replace-function] Replace kernel
gcca 7f80017
[replace-function] Check device attribute status
gcca 207fe0e
[replace-function] Move ptr construction (invariant)
gcca 8767314
[replace-function] Add replace benchmark against cpu
gcca 622abbd
moved replace benchmark to bench folder. Added comments and more test…
d364fd8
[replace-function] Add documentation
gcca 95a8a21
[replace-function] Merged from remote
gcca 99f6ebf
Merge branch 'master' into replace-function
gcca c5f27c1
[replace-function] Update function name
gcca b8e7ddd
[replace-function] Update name for test
gcca fdb7afc
[replace-function] Update function for benchmark
gcca 41b058c
Merge upstream 'master' into replace-function
gcca File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#============================================================================= | ||
# Copyright 2018 BlazingDB, Inc. | ||
# Copyright 2018 Cristhian Alberto Gonzales Castillo <[email protected]> | ||
# | ||
# 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. | ||
#============================================================================= | ||
|
||
if(GDF_BENCHMARK) | ||
|
||
include(ExternalProject) | ||
|
||
ExternalProject_Add(benchmark_ep | ||
CMAKE_ARGS | ||
-DCMAKE_BUILD_TYPE=RELEASE | ||
-DCMAKE_INSTALL_PREFIX=build | ||
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON | ||
GIT_REPOSITORY https://github.com/google/benchmark.git | ||
GIT_TAG v1.4.1 | ||
UPDATE_COMMAND "" | ||
) | ||
ExternalProject_Get_property(benchmark_ep BINARY_DIR) | ||
set(BENCHMARK_ROOT ${BINARY_DIR}/build) | ||
|
||
file(MAKE_DIRECTORY ${BENCHMARK_ROOT}/include) | ||
file(MAKE_DIRECTORY ${BENCHMARK_ROOT}/lib) | ||
|
||
add_library(Google::Benchmark INTERFACE IMPORTED) | ||
add_dependencies(Google::Benchmark benchmark_ep) | ||
set_target_properties(Google::Benchmark | ||
PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${BENCHMARK_ROOT}/include) | ||
set_target_properties(Google::Benchmark | ||
PROPERTIES INTERFACE_LINK_LIBRARIES ${BENCHMARK_ROOT}/lib/libbenchmark.a) | ||
|
||
add_library(Google::Benchmark::Main INTERFACE IMPORTED) | ||
set_target_properties(Google::Benchmark::Main | ||
PROPERTIES INTERFACE_LINK_LIBRARIES ${BENCHMARK_ROOT}/lib/libbenchmark_main.a) | ||
|
||
|
||
function(GDF_ADD_BENCHMARK TARGET) | ||
list(REMOVE_AT ARGV 0) | ||
cuda_add_executable(${TARGET} ${ARGV}) | ||
target_link_libraries(${TARGET} Google::Benchmark Google::Benchmark::Main gdf) | ||
endfunction() | ||
|
||
|
||
add_subdirectory(replace) | ||
endif() |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#============================================================================= | ||
# Copyright 2018 BlazingDB, Inc. | ||
# Copyright 2018 Cristhian Alberto Gonzales Castillo <[email protected]> | ||
# | ||
# 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. | ||
#============================================================================= | ||
|
||
GDF_ADD_BENCHMARK(replace-benchmark replace-benchmark.cu) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're adding google benchmark in this PR? Shouldn't that be orthogonal to
gdf_replace
, and therefore a separate PR?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is the first benchmark I've seen added to libgdf...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since no other PR depends of this, I put google benchmark here. But I could make another PR if it's relevant.