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

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

Link to this function

elapsedTime(start, end_)

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

elapsedTime

Positional Arguments
  • start: Evision.CUDA.Event.t()
  • end_: 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([{atom(), 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>
@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()) :: 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(), [{atom(), 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
@spec waitForCompletion(t()) :: t() | {:error, String.t()}

waitForCompletion

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

Python prototype (for reference only):

waitForCompletion() -> None