-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Support for runtime CPU/CUDA selection #3060
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
kSkip
wants to merge
39
commits into
davisking:master
Choose a base branch
from
kSkip:cpu-cuda-toggle
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
39 commits
Select commit
Hold shift + click to select a range
705bd0c
added runtime cuda toggle
kSkip 4b8feab
only set if built with cuda
kSkip 3ea1be1
fixed missing macro condition
kSkip 9ca4809
Fixed another missing directive
kSkip 49f8b0a
Check image size when reading targa file (#3058)
tabudz 2a82cc3
change the default u32string char type to char32_t (#3059)
wenbingl 8bf1f52
Change version
davisking 1a38b7a
change version back
davisking 4a402ba
`throw()` -> `noexcept`
r-barnes 3b5f484
Fix a bug when getting a gzip header extra field with inflate(). (#3063)
tabudz 3b37d5c
Drop namespace std (#3067)
penguinpee f14e77b
Add Byte Pair Encoding (BPE) class for subword tokenization (#3056)
Cydral 207c3d7
cleanup serialization code and add missing fields
davisking 9ca200f
Some more cleanup
davisking 44fbbeb
fix SyntaxWarning: invalid escape sequence '\(' (#3069)
Dobatymo 883dd88
Merge branch 'refs/heads/master' into kSkip-cpu-cuda-toggle
davisking 47af03f
Defined macros to wrap use_cuda() branches
kSkip dc33fa6
Added docs for new public functions
kSkip 652af01
Add linear_ layer for neural networks (#3074)
Cydral f97db8f
ci: remove unsupported ubuntu 20.04 (#3075)
arrufat ec1881b
Add `reshape_to` layer for flexible tensor reshaping/rescaling (#3076)
Cydral 696586c
tagging a new release
davisking b9f5fa1
put back to .99
davisking 412ef35
Merge branch 'refs/heads/master' into kSkip-cpu-cuda-toggle
davisking 0a77590
Make use_cuda() only set to true if there is also a GPU available
davisking 458e785
Merge branch 'davisking:master' into cpu-cuda-toggle
kSkip 345b9b7
Allocate CUDA memory only when use_cuda() returns true
kSkip 8a6d0b7
Merge branch 'master' into cpu-cuda-toggle
kSkip 40dc2dd
update to use newer sphinx
davisking 5a490e0
update build rules to work with latest python build practices (#3134)
davisking 94553fd
Update path to mkl and kiss fft headers (#3136)
kSkip 0e667c1
Improve numerical robustness of find_min_trust_region()
davisking adf7593
fix(test/string): fix gcc 16 build issue (#3137)
ykshek 1fdece3
tag 20.0.1
davisking fcf5fbe
set back to .99
davisking eea87b9
Add undo and redo functionality to imglab (#606) (#3143)
gzbykyasin dcc211e
Do some cleanup
davisking 679b01e
Merge branch 'refs/heads/master' into kSkip-cpu-cuda-toggle
davisking d1b6bcc
switch to a single immutable global env var that controls cuda use
davisking 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
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.
Do we really need these runtime assertions now that we guarantee immutability of the cuda/cpu execution context?