View Source Evision.CUDA.TargetArchs (Evision v0.2.7)

Summary

Types

t()

Type that represents an CUDA.TargetArchs struct.

Types

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

Type that represents an CUDA.TargetArchs struct.

  • ref. reference()

    The underlying erlang resource variable.

Functions

@spec has(Keyword.t()) :: any() | {:error, String.t()}
@spec has(integer(), integer()) :: boolean() | {:error, String.t()}

There is a set of methods to check whether the module contains intermediate (PTX) or binary CUDA code for the given architecture(s):

Positional Arguments
  • major: integer().

    Major compute capability version.

  • minor: integer().

    Minor compute capability version.

Return
  • retval: bool

Python prototype (for reference only):

has(major, minor) -> retval
@spec hasBin(Keyword.t()) :: any() | {:error, String.t()}
@spec hasBin(integer(), integer()) :: boolean() | {:error, String.t()}

hasBin

Positional Arguments
  • major: integer()
  • minor: integer()
Return
  • retval: bool

Python prototype (for reference only):

hasBin(major, minor) -> retval
Link to this function

hasEqualOrGreater(named_args)

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

hasEqualOrGreater(major, minor)

View Source
@spec hasEqualOrGreater(integer(), integer()) :: boolean() | {:error, String.t()}

hasEqualOrGreater

Positional Arguments
  • major: integer()
  • minor: integer()
Return
  • retval: bool

Python prototype (for reference only):

hasEqualOrGreater(major, minor) -> retval
Link to this function

hasEqualOrGreaterBin(named_args)

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

hasEqualOrGreaterBin(major, minor)

View Source
@spec hasEqualOrGreaterBin(integer(), integer()) :: boolean() | {:error, String.t()}

hasEqualOrGreaterBin

Positional Arguments
  • major: integer()
  • minor: integer()
Return
  • retval: bool

Python prototype (for reference only):

hasEqualOrGreaterBin(major, minor) -> retval
Link to this function

hasEqualOrGreaterPtx(named_args)

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

hasEqualOrGreaterPtx(major, minor)

View Source
@spec hasEqualOrGreaterPtx(integer(), integer()) :: boolean() | {:error, String.t()}

hasEqualOrGreaterPtx

Positional Arguments
  • major: integer()
  • minor: integer()
Return
  • retval: bool

Python prototype (for reference only):

hasEqualOrGreaterPtx(major, minor) -> retval
Link to this function

hasEqualOrLessPtx(named_args)

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

hasEqualOrLessPtx(major, minor)

View Source
@spec hasEqualOrLessPtx(integer(), integer()) :: boolean() | {:error, String.t()}

hasEqualOrLessPtx

Positional Arguments
  • major: integer()
  • minor: integer()
Return
  • retval: bool

Python prototype (for reference only):

hasEqualOrLessPtx(major, minor) -> retval
@spec hasPtx(Keyword.t()) :: any() | {:error, String.t()}
@spec hasPtx(integer(), integer()) :: boolean() | {:error, String.t()}

hasPtx

Positional Arguments
  • major: integer()
  • minor: integer()
Return
  • retval: bool

Python prototype (for reference only):

hasPtx(major, minor) -> retval