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

Link to this section Summary

Types

t()

Type that represents an Evision.CUDA.Event struct.

Link to this section Types

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

Type that represents an Evision.CUDA.Event struct.

  • ref. reference()

    The underlying erlang resource variable.

Link to this section Functions

Link to this function

elapsedTime(start, end_)

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

elapsedTime

Positional Arguments
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

Python prototype (for reference only):

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

Event

Keyword Arguments
  • flags: Event_CreateFlags.
Return

Python prototype (for reference only):

Event([, flags]) -> <cuda_Event object>
@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(t()) :: :ok | {:error, String.t()}

record

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

Python prototype (for reference only):

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

record

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

Python prototype (for reference only):

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

waitForCompletion

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

Python prototype (for reference only):

waitForCompletion() -> None