Skip to content

Commit

Permalink
move out of profiler context
Browse files Browse the repository at this point in the history
  • Loading branch information
galipremsagar committed Jul 29, 2024
1 parent 6a0d22a commit 72a36a2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions python/cudf/cudf/pandas/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,18 @@ def main():
args = parser.parse_args()

rmm_mode = install()
if "managed" in rmm_mode:
for key in {
"column_view::get_data",
"mutable_column_view::get_data",
"gather",
"hash_join",
}:
from cudf._lib import pylibcudf

pylibcudf.experimental.enable_prefetching(key)
with profile(args.profile, args.line_profile, args.args[0]) as fn:
args.args[0] = fn
if "managed" in rmm_mode:
for key in {
"column_view::get_data",
"mutable_column_view::get_data",
"gather",
"hash_join",
}:
from cudf._lib import pylibcudf

pylibcudf.experimental.enable_prefetching(key)
if args.module:
(module,) = args.module
# run the module passing the remaining arguments
Expand Down

0 comments on commit 72a36a2

Please sign in to comment.