View Source Evision.CUDA.Event (Evision v0.2.9)

Summary

Types

t()

Type that represents an CUDA.Event struct.

Types

@type t() :: %Evision.CUDA.Event{ref: reference()}

Type that represents an CUDA.Event struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

@spec elapsedTime(Keyword.t()) :: any() | {:error, String.t()}
Link to this function

elapsedTime(start, end_arg)

View Source
@spec elapsedTime(t(), t()) :: number() | {:error, String.t()}

elapsedTime

Positional Arguments
  • start: Evision.CUDA.Event.t()
  • end_arg: Evision.CUDA.Event.t()
Return
  • retval: float

Python prototype (for reference only):

elapsedTime(start, end) -> retval
@spec event() :: t() | {:error, String.t()}

Event

Keyword Arguments
  • flags: Event_CreateFlags.
Return
  • self: Evision.CUDA.Event.t()

Python prototype (for reference only):

Event([, flags]) -> <cuda_Event object>
@spec event(Keyword.t()) :: any() | {:error, String.t()}
@spec event([{:flags, term()}] | nil) :: t() | {:error, String.t()}

Event

Keyword Arguments
  • flags: Event_CreateFlags.
Return
  • self: Evision.CUDA.Event.t()

Python prototype (for reference only):

Event([, flags]) -> <cuda_Event object>
Link to this function

queryIfComplete(named_args)

View Source
@spec queryIfComplete(Keyword.t()) :: any() | {:error, String.t()}
@spec queryIfComplete(t()) :: boolean() | {:error, String.t()}

queryIfComplete

Positional Arguments
  • self: Evision.CUDA.Event.t()
Return
  • retval: bool

Python prototype (for reference only):

queryIfComplete() -> retval
@spec record(Keyword.t()) :: any() | {:error, String.t()}
@spec record(t()) :: t() | {:error, String.t()}

record

Positional Arguments
  • self: Evision.CUDA.Event.t()
Keyword Arguments
  • stream: Evision.CUDA.Stream.t().

Python prototype (for reference only):

record([, stream]) -> None
@spec record(t(), [{:stream, term()}] | nil) :: t() | {:error, String.t()}

record

Positional Arguments
  • self: Evision.CUDA.Event.t()
Keyword Arguments
  • stream: Evision.CUDA.Stream.t().

Python prototype (for reference only):

record([, stream]) -> None
Link to this function

waitForCompletion(named_args)

View Source
@spec waitForCompletion(Keyword.t()) :: any() | {:error, String.t()}
@spec waitForCompletion(t()) :: t() | {:error, String.t()}

waitForCompletion

Positional Arguments
  • self: Evision.CUDA.Event.t()

Python prototype (for reference only):

waitForCompletion() -> None