Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions hta/common/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
# https://forums.developer.nvidia.com/t/maximum-number-of-operations-in-a-stream/255260
# We anecdotally see 1022 - 1024 to cause blocking of runtime operations.
CUDA_MAX_LAUNCH_QUEUE_PER_STREAM: int = 1024

MAX_EVENT_DURATION_US: int = 604_800_000_000
3 changes: 3 additions & 0 deletions hta/configs/parser_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from typing import Dict, List, Optional, Set, Union

import pandas as pd
from hta.common.constants import MAX_EVENT_DURATION_US
from hta.configs.default_values import AttributeSpec, EventArgs, ValueType
from hta.configs.event_args_yaml_parser import (
parse_event_args_yaml,
Expand Down Expand Up @@ -113,6 +114,8 @@ def __init__(
# config to convert ts to nearest integer
self.convert_ts_to_integer = convert_ts_to_integer

self.max_event_duration_us: Optional[int] = MAX_EVENT_DURATION_US

def clone(self) -> "ParserConfig":
return copy.deepcopy(self)

Expand Down
Loading