Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1147 commits
Select commit Hold shift + click to select a range
f87795a
Update python package version
fpoms May 24, 2018
50b7daa
parsers -> readers
fpoms May 24, 2018
f2f311d
Add install for libraries
fpoms May 25, 2018
37f525e
Bump python package version
fpoms May 25, 2018
8bd3459
Convert to python extension module
fpoms May 25, 2018
e0667cb
Fix shot detect example
fpoms May 25, 2018
a3287f9
Bump version to 0.0.4
fpoms May 25, 2018
ed5054c
Move setup.py to root since extensions don't work with relative paths
fpoms May 25, 2018
22e7a5d
Don't special case stdlib since we install it, bump to 0.0.5'
fpoms May 25, 2018
671e040
Fix typo
fpoms May 25, 2018
f556d65
Update travis to build using new system
fpoms May 25, 2018
a6d25e7
Downgrade grpc version due to failure to build on Mac
fpoms May 25, 2018
e0af448
Reupgrade to grpc 1.12
fpoms May 25, 2018
3427630
Revert travis build to proper installation command
fpoms May 25, 2018
3414357
Add homebrew installation to docs
fpoms May 25, 2018
6b61a9c
Debug commit
fpoms May 25, 2018
7a96e03
Attempt to fix travis
fpoms May 25, 2018
d213da0
Remove reference to bindings
fpoms May 25, 2018
c90b1cc
Switch back to building scanner libs inside pip package
fpoms May 25, 2018
a8c7b6b
Bump for pypi
fpoms May 25, 2018
cdf623e
User proper scanner_stdlib name
fpoms May 25, 2018
fb711e1
Bump version to 0.2.1
fpoms May 25, 2018
1553f98
Fix crashes in ffmpeg
fpoms May 25, 2018
c7cdc56
Fix breaking tests
fpoms May 26, 2018
3352941
Fixes #207
fpoms May 28, 2018
3c95597
Bump version
fpoms May 29, 2018
6a7627c
Add rpath for looking up dynamic libraries in python package
fpoms May 29, 2018
e92e9f8
Add support for OpenPose on CPUs
fpoms May 29, 2018
2fd6476
Remove CUDA only guard for openpose
fpoms May 29, 2018
62b0bce
OpenPose does not support macOS
fpoms May 29, 2018
efa4115
Bump version
fpoms May 29, 2018
0d307a7
Remove setting cmu specific proxy in OpenPose
fpoms May 29, 2018
41c65c2
Bump version
fpoms May 29, 2018
d11dd40
Move Op loading responsibility from master -> worker
fpoms May 29, 2018
15e8644
Bump version
fpoms May 29, 2018
6207bbf
Retry master NewJob requests to worker
fpoms May 30, 2018
4557226
OpenPose must have GPU num set to <= 0 in CPU mode
fpoms May 30, 2018
a3a6ca4
Log resources on worker startup
fpoms May 30, 2018
2db7d3e
Remove local totals support for GPU since it is buggy
fpoms May 30, 2018
fde9764
Fix lock ordering race condition causing deadlock
fpoms May 30, 2018
814941b
Add utility for computing distance between poses
fpoms May 31, 2018
eb14329
Fix bug when failing to register Op on master
fpoms May 31, 2018
07a58ff
fix: fix error in example pose detection
quanhua92 Jun 1, 2018
a19327e
Fix bugs caused by having stenciled and non-stenciled inputs
fpoms Jun 1, 2018
60e22d8
Make face_boox from pose more robust
fpoms Jun 1, 2018
8d522e9
Privatize py kernels to each python process
fpoms Jun 6, 2018
57cc5dc
Add support for querying running jobs
fpoms Jun 7, 2018
caafef5
Fix tf session not being set as default
fpoms Jun 7, 2018
54c35ad
Bump version to 0.2.8
fpoms Jun 7, 2018
360ad49
Remove old arguments
fpoms Jun 19, 2018
677f095
Add mat to frame functions
fpoms Jun 26, 2018
0962712
Replace homebrew queue with concurrentqueue
willcrichton May 13, 2018
500d0d8
Revert API changes
willcrichton May 13, 2018
6807323
Switch to deque since queue does not provide peek
fpoms Jul 1, 2018
7bac6bd
Fix Op.cmake using python instead of python3
fpoms Jul 3, 2018
a265d31
Update build_flags to point to proper libdir
fpoms Jul 3, 2018
fdf8b46
Accelerate column reads with parallel io
fpoms Jul 4, 2018
0325188
Add interpolation type support for resize op
fpoms Jul 4, 2018
4598f6d
Check worker id ping to handle new worker on same address
fpoms Jul 4, 2018
981d8a7
add poseScores for each pose in OpenPose Kernel
quanhua92 Jun 30, 2018
f2c1b17
reformat openpose_kernel.cpp
quanhua92 Jun 30, 2018
47f8fb0
Update poses.py rename posescores to pose_score
quanhua92 Jul 3, 2018
28783a1
Add untar to download_temp_file, lazy tf loading in tfkernel, assert
willcrichton Jul 13, 2018
73c21bb
Move Google Kubernetes example to gcp_kubernetes dir
fpoms Jul 16, 2018
66bb460
Suffix docker images with tag name
fpoms Jul 16, 2018
eb83488
Update examples + docs for tagged docker images
fpoms Jul 16, 2018
a0d8b07
Bump tag
fpoms Jul 16, 2018
e9d372d
Add 9.0 to images built
willcrichton Jul 17, 2018
62ec038
Fix empty list bug
willcrichton Jul 18, 2018
05b789c
Allow creation of dummy kernel config
willcrichton Jul 18, 2018
3bfd436
Add size arg to array reader
willcrichton Jul 18, 2018
942b066
Fix documentation not building
Jul 20, 2018
f6d7e83
Add support for per slice kernel args
fpoms Jul 23, 2018
806d212
Fix issue when no arguments provided to kernel
fpoms Jul 23, 2018
0bb1c15
Add hack to speed up reads for large numbers of sources
fpoms Jul 23, 2018
81f3e6d
Bump version
fpoms Jul 23, 2018
bd2b56f
Fix bug with multiple video output columns
fpoms Jul 23, 2018
656d74b
Bump version
fpoms Jul 23, 2018
0adf9d0
feat: add support for Open ReID
quanhua92 Jun 9, 2018
02ddf36
add Dockerfile to build PyTorch and Open-ReID
quanhua92 Jul 14, 2018
6c27785
Update README.md
kayvonf Jul 26, 2018
a7469c2
Better errors in software video decoder
willcrichton Jul 26, 2018
38763d4
Add initial audio source
willcrichton Jul 28, 2018
eeb2a92
Remove build.sh feature
willcrichton Jul 30, 2018
d63fa36
Add back fail through as flag
willcrichton Jul 30, 2018
4ad7abf
Attempt fix for build.sh issue
willcrichton Jul 30, 2018
efbece9
Reset build.sh to working version
willcrichton Jul 30, 2018
120b789
Remove delay at end of job caused by sleep in worker loop
fpoms Jul 31, 2018
fb8cfae
Bump version
fpoms Jul 31, 2018
d1179e8
Attempted improvement on audio source
willcrichton Jul 31, 2018
e0003d9
Working audio source
willcrichton Aug 1, 2018
07ee7cf
Improve save io perf, add granular profiling for save/load
fpoms Aug 1, 2018
f33e2ee
Add profiling to files sink/source
fpoms Aug 1, 2018
917d978
Add storehouse config to source/enumerator/sink, clean up audio source
willcrichton Aug 1, 2018
c8ab163
Add audio test
willcrichton Aug 1, 2018
a25f5dd
Fix python kernel not using proper offset for output frames
fpoms Aug 1, 2018
96a0534
Loop in decode packet if decoder needs more input
willcrichton Aug 1, 2018
518fc45
Have Scanner automatically update Scannertools in Travis
willcrichton Aug 2, 2018
39624ba
Make master always ping workers, force worker to use watchdog
fpoms Aug 5, 2018
05db098
One large read for metadata is better than many small ones
fpoms Aug 7, 2018
b309b8c
Bump version
fpoms Aug 7, 2018
dd6793c
GIL should already be acquired when starting master/worker
fpoms Aug 8, 2018
520e23b
Fix incorrect caching behavior when loading multiple frame columns
willcrichton Aug 9, 2018
5b60f0b
Add new job retries limit
willcrichton Aug 11, 2018
c4e42d9
Fix missing param on start_master
willcrichton Aug 11, 2018
d01c0c8
Fix Op.cmake to work on OS X
fpoms Aug 11, 2018
c55b6ed
README update, add scannertools
willcrichton Aug 12, 2018
db4487d
Minor doc improvements
willcrichton Aug 12, 2018
a46007a
travis_retry to avoid network timeouts in travis build
willcrichton Aug 13, 2018
b1c2043
Move retry to toplevel
willcrichton Aug 13, 2018
c26eaa5
Only have cpu build run publish script, remove pypi publish
willcrichton Aug 13, 2018
60ec483
Fix minor ui thing
willcrichton Aug 13, 2018
bae3a21
Improve consistency on empty list binary encoding
willcrichton Aug 13, 2018
53cffc4
Separate out link flags from compile flags
fpoms Aug 24, 2018
d1d4152
Fix compiler warnings for kernel.h
fpoms Aug 27, 2018
3a3aba8
Revert premature change
fpoms Aug 27, 2018
7efe97a
Tweak logging verbosity
willcrichton Aug 29, 2018
784eacc
Build with RelWithDebInfo in docker images
willcrichton Aug 29, 2018
9a2cb88
Also build hwang and storehouse with RelWithDebInfo
willcrichton Aug 29, 2018
da1498f
Pin to older cloudpickle to avoid annotation serialization issue
willcrichton Aug 29, 2018
7e5abc9
Error if mixed inplace/non-inplace bulk job detected
willcrichton Aug 29, 2018
fb3b0c5
Increase default save workers
willcrichton Aug 29, 2018
1fd35f0
Write table megafile after ingest
willcrichton Aug 31, 2018
f30a850
Update OpenPose Op to support CPU fixed input resolution
fpoms Sep 1, 2018
8d15779
Update storehouse version to fix s3 signature issue
fpoms Sep 5, 2018
0d86316
Support gracefully shutting down worker if hwang fails
fpoms Sep 5, 2018
b54c8d3
Add hwang include for hwang::Result
fpoms Sep 5, 2018
e41bf84
Fix profiler failing if a node crashes
fpoms Sep 6, 2018
c82b9e8
Update storehouse and hwang versions to latest
fpoms Sep 6, 2018
9d17325
travis-publish.sh typo
willcrichton Sep 6, 2018
65740de
Bump hwang version
willcrichton Sep 7, 2018
ede069e
Cache enumerator and sink info in client
willcrichton Sep 7, 2018
720917f
Bump version to 0.2.17
fpoms Sep 8, 2018
1949790
Use binary search instead of linear search for block memory allocator
willcrichton Sep 10, 2018
17f7566
Make wait_on_job a generator for preemptibility
willcrichton Sep 11, 2018
1a9e4da
Don't want to be a joob
willcrichton Sep 11, 2018
1f874ff
Add sleep to job wait loop
willcrichton Sep 11, 2018
4a02c7d
Add timed wait to remove busywait in worker
fpoms Sep 12, 2018
e39aeaa
Bump version to 0.2.18
fpoms Sep 12, 2018
cfdb0a6
Missing if condition
fpoms Sep 12, 2018
c745c25
Merge branch 'master' into hwang-error-support
willcrichton Sep 12, 2018
eca28b3
Merge pull request #226 from scanner-research/hwang-error-support
willcrichton Sep 12, 2018
bbfba6f
Revert "Use binary search instead of linear search for block memory a…
willcrichton Sep 13, 2018
3279944
Make python kernels handle all dim <= 3 types
fpoms Sep 14, 2018
8115d92
Squelch ffmpeg output
fpoms Sep 14, 2018
97471e6
Table might have zero rows
fpoms Sep 14, 2018
aaa0876
Fix tutorials + add them to regular testing
fpoms Sep 14, 2018
97866f0
Tests needs permission to create directories
fpoms Sep 14, 2018
15dd395
Add stages to travis build
fpoms Sep 14, 2018
c468a20
After success publish on build stage
fpoms Sep 14, 2018
b3d6304
Rename to Test build since travis forces this capitalization
fpoms Sep 14, 2018
14ac91b
Add +x to travis-test
fpoms Sep 14, 2018
02a1a5e
Split tests into three parts for parallelism
fpoms Sep 14, 2018
ec0c094
Add travis OSX build
fpoms Sep 14, 2018
9976390
Avoid running PythonTests in cpp tests
fpoms Sep 14, 2018
9edbcec
Attempt to fix OS X travis build
fpoms Sep 14, 2018
1f60b03
Update Makfile for resize_op
fpoms Sep 14, 2018
333675e
No docker on OS X travis env
fpoms Sep 14, 2018
77af9ba
Closes #215
fpoms Sep 14, 2018
33c47b1
Only upgrade python if outdated
fpoms Sep 14, 2018
0e3cccb
[travis] Install dependencies using sudo & test brew build
fpoms Sep 14, 2018
c0f23e7
[travis] Echo for debugging halide
fpoms Sep 15, 2018
382f798
Set permission bits on macOS halide dep
fpoms Sep 15, 2018
a79480b
Recursively set permissions bits for macOS halide
fpoms Sep 15, 2018
4c02431
Recursively set permissions on files and dirs separately
fpoms Sep 15, 2018
e3a5cdc
[travix] fix not installing correct protobuf
fpoms Sep 15, 2018
445451d
[travis] force yes for creating config in macOS test
fpoms Sep 15, 2018
5432fbd
Scanner on AWS EKS guide
fpoms Sep 16, 2018
7dcef32
Retry on forbidden error from github releases for halide
fpoms Sep 16, 2018
63e682b
[travis] Fix incorrect sed syntax
fpoms Sep 16, 2018
cdb507f
[travis] / appears in urls, so use | for sed separator
fpoms Sep 17, 2018
affd823
[travis] trim trailing filename from shasum output
fpoms Sep 17, 2018
07b4b01
Update homebrew instructions
fpoms Sep 17, 2018
830b685
[travis] Handle brew install failing due to linking
fpoms Sep 18, 2018
8bcf53a
Reregister worker on error
fpoms Sep 18, 2018
4a071b0
[travis] attempt to fix osx brew build
fpoms Sep 18, 2018
0e6655b
[travis] fix logical or being a pipe
fpoms Sep 18, 2018
cbc9a40
[travis] own the /usr/local dir
fpoms Sep 18, 2018
d1aef37
[travis] add git info
fpoms Sep 18, 2018
71502ae
[travis] add scanner.rb to commit log before commit
fpoms Sep 18, 2018
54bc066
[travis] update deploy key for homebrew
fpoms Sep 19, 2018
b0a38ee
[travis] set remote url to git@ protocol
fpoms Sep 19, 2018
cf502cc
Add "fast track" responses on master for messages from client
willcrichton Sep 19, 2018
1b22133
Reduce contention by only holding lock when needed in start_workers
fpoms Sep 20, 2018
2bfd901
Fix worker unregistered bugs
fpoms Sep 21, 2018
4e1b652
Fix race condition causing some workers to never start
fpoms Sep 21, 2018
a179ffc
Add faster map-based allocation interface, improve profiling around c…
willcrichton Sep 21, 2018
abac50b
Fix incorrect add_refs for new allocation strategy
willcrichton Sep 23, 2018
785e2bc
Simplify master and add explicit worker states
fpoms Sep 23, 2018
7469bd4
Pin googletest dependency
fpoms Sep 26, 2018
86a56ad
Bump version
fpoms Sep 26, 2018
6b27b63
Fix race condition when starting jobs on workers
fpoms Sep 26, 2018
12bede8
[travis] handle case where brew has already been updated
fpoms Sep 26, 2018
b534a6b
Remove local ids/totals
willcrichton Sep 28, 2018
0f5971c
Bump version
fpoms Sep 28, 2018
39e25a1
Fix issue with Python source causing segfault due to pybind bug
fpoms Oct 4, 2018
b1a5dd9
Update python reg to support device_sets
fpoms Oct 4, 2018
bd2da92
Fix gRPC issue with shared connections
willcrichton Oct 18, 2018
9f26452
Add profiling information to master
willcrichton Oct 18, 2018
67406c5
Fix the same job becoming blacklisted multiple times
fpoms Oct 19, 2018
a762033
Remove debug statement in profiler
willcrichton Oct 22, 2018
89e22f5
Add python source test
fpoms Oct 23, 2018
416f650
Restrict numpy version to fix macOS build
fpoms Oct 23, 2018
07eb643
Fix trying to encode non 3 channel images
fpoms Oct 29, 2018
b1cea3b
Add flag to ignore insert conflicts in SQL sink
willcrichton Oct 31, 2018
b9b2a68
Bump hwang version, add a few logs, move feature extractor to CPU
willcrichton Nov 8, 2018
23090bd
Add adaptive sleep schedules to improve end-to-end runtime
fpoms Nov 8, 2018
0e04920
Reduce default profile sizes, improve profile load times
willcrichton Nov 15, 2018
9044164
Temporary stop OS X builds
willcrichton Nov 16, 2018
f7317e7
Fix profiler test
willcrichton Nov 16, 2018
cd84b90
Fix TF using all the GPU memory
willcrichton Nov 17, 2018
3b92d5f
Prototype of new scheduler
swjz Jul 23, 2018
ad6e793
Minor changes based on Alex's comments
swjz Jul 24, 2018
b742ae5
Take code from derive_stencil_requirements() to fill global dependenc…
swjz Jul 26, 2018
a492250
Halfway checkin - Make master.cpp support per Op scheduling
swjz Aug 2, 2018
8bd64eb
Added some TODOs to worker.cpp
swjz Aug 3, 2018
81adb81
Dependency format Op -> Task in each TaskStream
swjz Aug 7, 2018
286a44a
remove data from grpc
swjz Aug 7, 2018
ac1bd87
Tasks -> Bulk Tasks, Ops -> Tasks
swjz Aug 9, 2018
578dc50
Bulk Tasks -> Tasks, LaunchCounter and FreeCounter, Running Worker
swjz Aug 13, 2018
3e7e877
Working version!!!
swjz Aug 15, 2018
a543c9e
add support for multiple jobs
swjz Aug 17, 2018
9fe6d21
allow variable task size for each task
swjz Aug 17, 2018
a0c30cb
Support triangle graphs; support multiple source/sink columns; support
swjz Aug 22, 2018
93dbf14
Support variable task size with built-in ops except slices
swjz Aug 28, 2018
05efcb9
Serialize EvalWorkEntry to protobuf format and write to file at each op
swjz Aug 29, 2018
dcbf80d
Fix pointer to pointer bug when is_frame==true
swjz Aug 29, 2018
7b093c5
Fix bug in triangle dependency case with multiple outputs
swjz Aug 29, 2018
b693de9
Support for multiple workers!
swjz Aug 30, 2018
698310b
Use storehouse::read_entire_file instead of read_entire_file
swjz Aug 31, 2018
f01350a
Block Allocation, enable profiler
swjz Sep 5, 2018
b2fa13d
Add profiler to scheduler
swjz Sep 6, 2018
60512df
Allow variable task size for source op
swjz Sep 6, 2018
f9c6f1b
more profilers
swjz Sep 6, 2018
0aff809
Add support for GPU (only single GPU for now)
swjz Sep 7, 2018
d4c05f1
Fix some memory leak
swjz Sep 9, 2018
eb244ce
Allow load_worker to have variable task size
swjz Sep 10, 2018
04153e6
Bug fix and caveat in code
swjz Sep 10, 2018
ea8ff0d
Add average image kernel
swjz Sep 11, 2018
b0281e2
Improved scheduler
swjz Sep 11, 2018
4969482
Add Scheduler Functionality Report
swjz Sep 14, 2018
847d9f6
add get_refs()
swjz Nov 5, 2018
97bef30
add original derive_stencil_requirements() back
swjz Nov 7, 2018
fca5273
rename new worker to worker_scheduler
swjz Nov 7, 2018
68434d7
revert build.sh
swjz Nov 7, 2018
186fa38
make most files backward compatible
swjz Nov 7, 2018
03bc297
Separate Ted's master.cpp from Alex's original one
swjz Nov 7, 2018
6cd31a1
Support switching between schedulers
swjz Nov 13, 2018
91c6084
manually update worker.cpp and worker.h
swjz Nov 13, 2018
b78a1b2
fix task_stream_map due to rebase conflict
swjz Nov 18, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ RECURSIVE = YES
# Note that relative paths are relative to the directory from which doxygen is
# run.

EXCLUDE = ./scanner/main.cpp
EXCLUDE = ./scanner/main.cpp ./python/scannerpy/build

# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
# directories that are symbolic links (a Unix file system feature) are excluded
Expand All @@ -838,7 +838,7 @@ EXCLUDE_PATTERNS =
# Note that the wildcards are matched against the file with absolute path, so to
# exclude all test directories use the pattern */test/*

EXCLUDE_SYMBOLS =
EXCLUDE_SYMBOLS = scanner::internal

# The EXAMPLE_PATH tag can be used to specify one or more files or directories
# that contain example code fragments that are included (see the \include
Expand Down
4 changes: 2 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ BreakStringLiterals: true
ColumnLimit: 80
CommentPragmas: '^ IWYU pragma:'
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: false
Expand Down Expand Up @@ -89,6 +89,6 @@ SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Auto
TabWidth: 8
TabWidth: 2
UseTab: Never
...
1 change: 1 addition & 0 deletions .gdbinit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
handle SIG40 nostop noprint
10 changes: 8 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,21 @@
# similar but **not quite** the same. If you add a file here, make sure that
# the Docker build still works.

dependencies.txt
nvidia-docker-compose.yml
.cache
build
**/*.pyc
**/*.trace
thirdparty
!thirdparty/resources
!thirdparty/CMakeLists.txt
python/*.egg-info

docker/**/deps.sh
docker/**/thirdparty
**/*.mp4
**/*.mkv
docker/*.log

python/scannerpy/include
python/scannerpy/include
dist
4 changes: 3 additions & 1 deletion .scanner.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ scanner_path = "/opt/scanner"
# bucket = "gcs-bucket"

[network]
master = "localhost:5001"
master = "localhost"
master_port = "5001"
worker_port = "5002"
76 changes: 60 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,66 @@
language: python
python:
- '3.5'
sudo: required

language: cpp

services:
- docker

addons:
apt:
packages:
- docker-ce
env:
global:
- DOCKER_REPO=scannerresearch/scanner
- DOCKER_EMAIL=wcrichto@cs.stanford.edu
- DOCKER_USER=wcrichto
- secure: "Jf7f8UvpJ8yRA/2nnxaRb9jGrzWZvbRVRxzQtmcx+ltBpflmLFbXB6o4sySGETn5YrJe1g4VNWvkFBZIdLY0n+v4AQ/D1eMWtJT+kZLHihVGcxB3G7SUSOyEUaN1DzdHbaRW4VCSXQJWgK48amxlwnNfXtbNkSpiqIifDURBeHK1UT9+w1FKuTDZmEXv+ubDKjXvv1DuPdTtnolItDfrdtKLh5iXgTRvgXFanmNvydIcHqfz+72qJZJRCdTwUrA8FPq7jKNndftX9y2/dKuA/Xd/cP818iR57Z2PJXeR1c6ZmQ0RBTIZ8pdwG6bfix+48a5+aWlPJ3friA0G2b8psdZ/rQMxBbEClTI+BfnuJnYaIW8JREqmOBACBL7/4eo/Jifv1+vl+VhWHSicS6mWg2khCNAMPWj3cIA/bZrRlTmNlC06GkUgnHar/HhovGrowbZCGOxN0CNWWcuCGeLYfvPgPiI4JRU8eq0VqVhhqXZyPuS/RT1FoqZ4mMfNZG+RSIKHU56g5M4elakp/bZdu9lRoS4hr9VFpvPaLorOTOXPa3J+JxmB9OIP+NLxMIGjUhYnSYfTJ9/+Opxg2lWUOdqXzPZsyPyI+4RuIyyPh1w6jN/xD3EqQC55u5JlFlJ1WuNoyhx16QcKu1Eytxd2JxU6LutMw9WgQET53Q3EOVk=" # DOCKER_PASS
- secure: "mJDNPmfRd3cyFNIhRg6TQo8ow5hOS+FC+DX6MLpM6Giv2nL1KkJD0fgnLqgiZeEKDOFHvGpGswGjYTAzNWYeocsneby88w58sNbueUE6PT74UqsbzrmvMhKh2xtEERkJFz5gKvdwc9a4nAvH5ejJW7OZ5OvSscR2vRBl4tUwTuA3czWbod6NwBC/sUrf0jTZhNgZWWWT1j2SLt379Q52Xmd5+ixAaSibctf8hCEMzE/lNsWprR1gO7H89eyLVRQc8VQh8msVtgo7QD/aapr+w96GDWWUAm6z5iNe8gLGZB9v4BtTm82XOV0iefNDfT0fwIhHrM6vqIdiiuMeYMteErT3rF55h0o8hJrP57lwT5u7hU/yxUhNTvtCdJTo8THJihXHbOT7LjxaF20SlJzjARSGZq9mYHeBgv9sGej2jF80iSn+xTAbalVFbc4hKumELnn/D7mGWRTjsGGTbTqNXvTQvxm/QjXmNusav5vKeRFwjbPGfb0iDSfhlZ7BHkR50OyskZ/R/69WjIFS9gBE2pvp4FlVpndKWkkkd4TVSgmnKCXxnQdeNS8We8NodvTBlTcvHFub8j2izKTZRU7FBXRgo9d+Gu+43nSRvjJUgwg/6D6Bou6boVHJo8ib9xzakVjojbJxehatj+dadpuVkG3tjULejPNg/qnjlJc10Pg=" # PYPI_PASS

- BUILD_TYPE=cpu
- DOCKER_REPO=scannerresearch/scanner
- DOCKER_TEST_REPO=scannerresearch/test-builds
- DOCKER_EMAIL=wcrichto@cs.stanford.edu
- DOCKER_USER=wcrichto
- secure: DAwB02uem8/aIRNfHPknzqZCCmwDlJoQq6r3qE1CyUqkM9VMu6mQa/RBYMBwp3Upny6oI6yBlYJqqVr1rjZzI4by0j0IVhuhQPp2G5DJ/mVZ5PQSJ0bxJtCzm29hHo8hi+EgIk7r7YTcHOr3SRmplf0vM0WFuJplW5fJ6J/RbJSPPpnlTOIgp0Ry9B4eowLhi4b//TbwmtzEX6j4yKxWnDTJ6cV9xRVN1FoNd15PvpiBkOZ3dVGWtdUZm9K3Q3IumeyuemAoTSuKU3r3aqMSamdLf7pmYjpzTrYDT9CMbbEVjzr8M3Y5wFyjQsIdFKzYM/0jRBlUbKaLMhz7a/9vlkplBI954ufOqHiGAx3Cdk4jfkJ3hyucCQqYuQwHxWMmru3lV6jIZf+rYn6UBomHeNN1AIiikZ1EjvNDwY8iwGZPJbcZ42gn2mTaUVxsmwMD757AalTOzZo94+pdFJDjWY6y6kPQlZbdj8AT14bBHf8x8zF8EsZrh/WQMcRgzEU3BcjDE3RIqNgK38Sv1OzqNVTYy57PXbEMKMqfpAQx8FTcx/7NXBRrStrQ24pRZJA+wvkUefpyWZnayyMPvttzB4106GCOWAjSdJEyYQTnZMrXMRX4Qf+NHx6KHlQcExxpww/hSvewsh0JRrvMol5HKXJaZqnF6ZTqxeQdLUDdn3g=
- secure: mJDNPmfRd3cyFNIhRg6TQo8ow5hOS+FC+DX6MLpM6Giv2nL1KkJD0fgnLqgiZeEKDOFHvGpGswGjYTAzNWYeocsneby88w58sNbueUE6PT74UqsbzrmvMhKh2xtEERkJFz5gKvdwc9a4nAvH5ejJW7OZ5OvSscR2vRBl4tUwTuA3czWbod6NwBC/sUrf0jTZhNgZWWWT1j2SLt379Q52Xmd5+ixAaSibctf8hCEMzE/lNsWprR1gO7H89eyLVRQc8VQh8msVtgo7QD/aapr+w96GDWWUAm6z5iNe8gLGZB9v4BtTm82XOV0iefNDfT0fwIhHrM6vqIdiiuMeYMteErT3rF55h0o8hJrP57lwT5u7hU/yxUhNTvtCdJTo8THJihXHbOT7LjxaF20SlJzjARSGZq9mYHeBgv9sGej2jF80iSn+xTAbalVFbc4hKumELnn/D7mGWRTjsGGTbTqNXvTQvxm/QjXmNusav5vKeRFwjbPGfb0iDSfhlZ7BHkR50OyskZ/R/69WjIFS9gBE2pvp4FlVpndKWkkkd4TVSgmnKCXxnQdeNS8We8NodvTBlTcvHFub8j2izKTZRU7FBXRgo9d+Gu+43nSRvjJUgwg/6D6Bou6boVHJo8ib9xzakVjojbJxehatj+dadpuVkG3tjULejPNg/qnjlJc10Pg=
- secure: J8Em68qmB/q+u9PEyNujfUN0zbUEKVgjylBNHctL5Bo/9HgQs7yoYBxuEhoY0f95lYJYdsrJ9sOoZ7pMBgCFi9UY8+Gv4f9RfpTVYsp+lav0bc1MNI3Ct8wgEO3uCbIhUSZQFNcW1YsNv2lruyyKxQpQhBJLuS4wR5UkZ+AhjnWKL6S3916zxhwSwKkFxtYDD8rEkfBlymgd9kEqygNzencp9v2JosV90bczUF1wDaDpCLczxjKlwODZWa2milKC3kWaJ5lvee42at0ik3jLrNoCaEzO3u2tMtY3sbjXOVAXy3qROz3mCjU9mFO4Zu22XW4qfhbfFsXR3ht8BSuQ2JqIsgpdWz7gvkYHB6I08RmPgyEYO2BXu4/lVGx+60JUMAJ8teasOVldId6MJ8CzjU6Bl57yRNDZQFpexK+HprXdFtj7O4qfrcp63jPj08r2x1ZxdTMk40PLJ9x8vpIJ3Drb8xegf8I4osQuAVPgBKnZhWGqfAYL6KVr+27U+4PqnhA6VfuJoh4JjfF+5Uxz3CubEKwNYtWgOu2J7fjHCCcF6wjSr+XoyNmDoABL6yvbs65F+XoP9OP+VCgKNsyz/FksXHvmTVIggePgXd5oZzh+EottaKD19EE9FFMeenqIkQ8rDmxogt4SRW9HJIOa6ocQD0JQXKOBM4gynXBfgHw=
install:
- sudo apt-get install -y doxygen graphviz python-pip
- pip install doxypypy twine

script: ./scripts/travis-build.sh

after_success: ./scripts/travis-publish.sh
- sudo apt-get update
- sudo apt-get install -y doxygen graphviz
- pip3 install requests[security] --upgrade
jobs:
include:
- stage: "Test build"
script: "travis_retry ./scripts/travis-build.sh"
# - stage: "Test build"
# language: generic
# services:
# addons:
# install:
# pip3 install requests[security] --upgrade
# script: "travis_retry ./scripts/travis-osx-build.sh"
# os: osx
- stage: test
script: "travis_retry ./scripts/travis-test.sh"
env: TEST_TYPE=cpp
- stage: test
script: "travis_retry ./scripts/travis-test.sh"
env: TEST_TYPE=tutorials
- stage: test
script: "travis_retry ./scripts/travis-test.sh"
env: TEST_TYPE=integration
- stage: build
script: "travis_retry ./scripts/travis-build.sh"
after_success: "travis_retry ./scripts/travis-publish.sh"
env:
- BUILD_TYPE=cpu
- stage: build
script: "travis_retry ./scripts/travis-build.sh"
env:
- BUILD_TYPE=gpu-8.0-cudnn6
- stage: build
script: "travis_retry ./scripts/travis-build.sh"
env:
- BUILD_TYPE=gpu-8.0-cudnn7
- stage: build
script: "travis_retry ./scripts/travis-build.sh"
env:
- BUILD_TYPE=gpu-9.0-cudnn7
- stage: build
script: "travis_retry ./scripts/travis-build.sh"
env:
- BUILD_TYPE=gpu-9.1-cudnn7
Binary file added .travis/travisci_rsa_brew.enc
Binary file not shown.
1 change: 1 addition & 0 deletions .travis/travisci_rsa_brew.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCw2maYHWQ6cdBi9UJ2Dzv4okW/bw0pmZAKAFZvXOjZ8rRcrhgu8pK289t42Hwso9dsCROJxxVegDTZeOh8jyuQqKziBXu1MqN/3+KuRWJfw3QGwOQNOuwPkBOEn+TZpkgiyz2GMDfvy1WseWxgKzadY2C/R4lHafnmc4Dr/6k2uNST3s73CAyHlGpORItlqZ+oc/IX74qz27PsjMjZsjarCEHDb3UWlsG95D1ymMWrwXUpx6/azyuAJEiWJp/UtdfL8oJVec9vXqK9pzI6IykLdFm0y72FYXtMwBDARugDGpqTpO1xmba0kSAoMe5Ip24nbNHB6gIHL8dnAD9qrbzF apoms@AlexandersMBP2.lan
109 changes: 11 additions & 98 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ project(Scanner)
###### Config options #####
option(BUILD_CUDA "" ON)
option(BUILD_TESTS "" ON)
option(BUILD_SERVER "" OFF)
option(BUILD_EXAMPLES "" ON)
option(ENABLE_PROFILING "" OFF)

if (BUILD_TESTS)
Expand All @@ -47,9 +45,14 @@ set(GLOBAL_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
set(THIRDPARTY_SOURCE_DIR "${CMAKE_SOURCE_DIR}/thirdparty")
set(THIRDPARTY_OUTPUT_PATH "${THIRDPARTY_SOURCE_DIR}/build/bin")

if (NOT CMAKE_BUILD_TYPE)
if(APPLE)
message(STATUS "Non-debug builds fail on MacOS. Setting to debug.")
set(CMAKE_BUILD_TYPE "Debug")
elseif(UNIX)
if (NOT CMAKE_BUILD_TYPE)
message(STATUS "No build type selected, defaulting to Release")
set(CMAKE_BUILD_TYPE "Release")
endif()
endif()

if(CMAKE_BUILD_TYPE MATCHES Debug)
Expand All @@ -66,101 +69,14 @@ if (ENABLE_PROFILING)
add_definitions(-DSCANNER_PROFILING)
endif()

###### Optional Dependencies #######
if (BUILD_CUDA)
find_package(CUDA REQUIRED)
add_definitions(-DHAVE_CUDA)
include_directories(${CUDA_INCLUDE_DIRS})
if(COMPILER_SUPPORTS_CXX1Y)
set(CUDA_NVCC_FLAGS "${CUDA_NVCC_FLAGS} -std=c++11")
endif()
endif()

if (BUILD_CUDA)
add_library(scanner_halide scanner/engine/halide_context.cpp)
endif()

###### Required Dependencies #######
find_package(SaneProtobuf REQUIRED)
find_package(FFmpeg REQUIRED)
find_package(LibLZMA REQUIRED)
find_package(OpenSSL REQUIRED)
find_package(BZip2 REQUIRED)
find_package(Boost COMPONENTS thread program_options regex python REQUIRED)
find_package(GFlags REQUIRED)
find_package(Glog REQUIRED)
find_package(GoogleTest REQUIRED)
find_package(CURL REQUIRED)
find_package(Iconv REQUIRED)
find_package(Storehouse REQUIRED CONFIG
PATHS "thirdparty/build/bin/storehouse")
find_package(TinyToml REQUIRED)
find_package(PythonLibs 2.7 EXACT REQUIRED)

set(GTEST_INCLUDE_DIRS
"${THIRDPARTY_OUTPUT_PATH}/googletest/include")
set(GTEST_LIBRARIES
"${THIRDPARTY_OUTPUT_PATH}/googletest/lib/libgtest.a")
set(GTEST_LIB_MAIN
"${THIRDPARTY_OUTPUT_PATH}/googletest/lib/libgtest_main.a")

set(SCANNER_LIBRARIES
"${PROTOBUF_LIBRARY}"
"${STOREHOUSE_LIBRARIES}"
"${FFMPEG_LIBRARIES}"
"-L/opt/ffmpeg-3.2.2/lib"
"-lswscale"
"${LIBLZMA_LIBRARIES}"
"${OPENSSL_LIBRARIES}"
"${BZIP2_LIBRARIES}"
"${PROXYGEN_LIBRARIES}"
"${FOLLY_LIBRARIES}"
"${Boost_LIBRARIES}"
"${GFLAGS_LIBRARIES}"
"${GLOG_LIBRARIES}"
"${CURL_LIBRARIES}"
"${ICONV_LIBRARIES}"
"${SCANNER_LIBRARIES}"
"${PYTHON_LIBRARIES}"
"-ljpeg"
"-lz"
"-ldl"
"-lgrpc++_unsecure -lgrpc -lgpr")

include_directories(
"."
"${CMAKE_CURRENT_BINARY_DIR}" # for protobuf generated files
"${PROTOBUF_INCLUDE_DIRS}"
"${FFMPEG_INCLUDE_DIR}"
"${TINYTOML_INCLUDE_DIR}"
"${STOREHOUSE_INCLUDE_DIRS}"
"${OPENSSL_INCLUDE_DIR}"
"${Boost_INCLUDE_DIRS}"
"${GLOG_INCLUDE_DIRS}"
"${LIBLZMA_INCLUDE_DIRS}"
"${PYTHON_INCLUDE_DIRS}")

if (BUILD_TESTS)
include_directories("${GTEST_INCLUDE_DIRS}")
endif()

if (BUILD_CUDA)
list(APPEND SCANNER_LIBRARIES
util_cuda
"${CUDA_LIBRARIES}"
"/usr/lib/x86_64-linux-gnu/libnvcuvid.so"
"-lcuda")
endif()

if (APPLE)
include_directories(
"/System/Library/Frameworks/Accelerate.framework/Versions/Current/Frameworks/vecLib.framework/Versions/Current/Headers/")
elseif()
endif()
include(cmake/Dependencies.cmake)

###### Project code #######
set(PROTO_FILES
scanner/metadata.proto
scanner/source_args.proto
scanner/sink_args.proto
scanner/sampler_args.proto
scanner/types.proto)

set(GRPC_PROTO_FILES
Expand Down Expand Up @@ -200,6 +116,7 @@ add_library(scanner SHARED
$<TARGET_OBJECTS:engine>
$<TARGET_OBJECTS:video>
$<TARGET_OBJECTS:util>
scanner/util/halide_context.cpp
${PROTO_SRCS}
${GRPC_PROTO_SRCS}
${STRUCK_SOURCES}
Expand Down Expand Up @@ -236,10 +153,6 @@ endforeach()

add_subdirectory(stdlib)

if (BUILD_EXAMPLES)
add_subdirectory(examples)
endif()

if (BUILD_TESTS)
add_subdirectory(tests)
endif()
20 changes: 0 additions & 20 deletions Dockerfile

This file was deleted.

Loading