pytorch/torch/csrc/jit/frontend
Nikitha Malgi 416ba5c48f Merge CUDA Streams and Events (#53902)
Summary:
-----------
- Updates current_stream and default stream API's to take `optional[device]` argument
- Adds parsing logic to replace `torch.cuda.Stream` and `torch.cuda.Event` -> `torch.classes.cuda.Stream` and `torch.classes.cuda.Event` for JIT
- Merges StreamContext manager for both Eager and JIT.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/53902

Test Plan:
------
Run JIT tests:
python test/test_jit.py -v TestCUDA

Run eager tests:
python test/test_cuda.py -v TestCuda

Reviewed By: SplitInfinity

Differential Revision: D27285996

Pulled By: nikithamalgifb

fbshipit-source-id: 45d9fee9a582b5f4c82330f5f99eb88584804270
2021-03-26 14:19:39 -07:00
..
builtin_functions.cpp Warn about floor_divide performing incorrect rounding (#50281) (#50281) 2021-02-10 03:13:34 -08:00
builtin_functions.h
canonicalize_modified_loop.cpp
canonicalize_modified_loop.h
code_template.h
concrete_module_type.cpp [WIP] JIT Static Hooks: adding hooks to class type and adding logic for hook running/compilation (#49544) 2021-01-20 09:09:30 -08:00
concrete_module_type.h [WIP] JIT Static Hooks: adding hooks to class type and adding logic for hook running/compilation (#49544) 2021-01-20 09:09:30 -08:00
convert_to_ssa.cpp
convert_to_ssa.h
edit_distance.cpp
edit_distance.h
error_report.cpp [codemod][fbcode/caffe2] Apply clang-format update fixes 2021-01-09 14:37:36 -08:00
error_report.h
exit_transforms.cpp [codemod][fbcode/caffe2] Apply clang-format update fixes 2021-01-09 14:37:36 -08:00
exit_transforms.h
function_schema_parser.cpp Teach Python TS frontend to parse complex literals (#52881) 2021-03-24 08:12:17 -07:00
function_schema_parser.h
inline_loop_condition.cpp
inline_loop_condition.h
ir_emitter.cpp Teach Python TS frontend to parse complex literals (#52881) 2021-03-24 08:12:17 -07:00
ir_emitter.h
lexer.cpp
lexer.h [JIT] Make NoneType annotation_str emit NoneType instead of None (#54642) 2021-03-26 11:32:20 -07:00
mini_environment.h
name_mangler.cpp
name_mangler.h
parse_string_literal.h
parser_constants.h
parser.cpp [JIT] Make NoneType annotation_str emit NoneType instead of None (#54642) 2021-03-26 11:32:20 -07:00
parser.h
resolver.h
schema_matching.cpp Teach Python TS frontend to parse complex literals (#52881) 2021-03-24 08:12:17 -07:00
schema_matching.h
schema_type_parser.cpp [JIT] Make NoneType annotation_str emit NoneType instead of None (#54642) 2021-03-26 11:32:20 -07:00
schema_type_parser.h
script_type_parser.cpp Merge CUDA Streams and Events (#53902) 2021-03-26 14:19:39 -07:00
script_type_parser.h
source_range.cpp
source_range.h
string_to_type.cpp [JIT] Make NoneType annotation_str emit NoneType instead of None (#54642) 2021-03-26 11:32:20 -07:00
strtod.cpp
strtod.h
sugared_value.cpp Teach Python TS frontend to parse complex literals (#52881) 2021-03-24 08:12:17 -07:00
sugared_value.h [JIT] Allow implicit boolean conversion of containers (#51683) 2021-02-05 00:34:35 -08:00
tracer.cpp Fix jit.trace mis-handling of InterfaceType (#53052) 2021-03-02 00:40:19 -08:00
tracer.h [Usability] Capture argument names for traced functions and modules (#51775) 2021-02-10 18:28:08 -08:00
tree_views.h [JIT] Make NoneType annotation_str emit NoneType instead of None (#54642) 2021-03-26 11:32:20 -07:00
tree.h
versioned_symbols.cpp [codemod][fbcode/caffe2] Apply clang-format update fixes 2021-01-09 14:37:36 -08:00
versioned_symbols.h