CUDALink`
CUDALink`

CUDADot

CUDADot[vec1,vec2]

gives the dot product of vec1 and vec2.

CUDADot[mat,vec]

gives the matrix-vector product of mat and vec.

CUDADot[mat1,mat2]

gives the matrix-matrix product of mat1 and mat2.

Details

  • The CUDALink application must be loaded using Needs["CUDALink`"].
  • CUDADot works only on general vectors types such as "Float", "Double", .
  • CUDADot does not work on fixed vector structure types like "Float[2]", "Integer32[2]", .

Examples

Basic Examples  (4)

First, load the CUDALink application:

This performs matrix-matrix multiplication:

This performs matrix-vector multiplication:

This performs the dot product:

If input is CUDAMemory, then memory is returned as output:

This multiplies the two input memories together:

Memory is retrieved using CUDAMemoryGet:

Memory must be freed with CUDAMemoryUnload:

Wolfram Research (2010), CUDADot, Wolfram Language function, https://reference.wolfram.com/language/CUDALink/ref/CUDADot.html.

Text

Wolfram Research (2010), CUDADot, Wolfram Language function, https://reference.wolfram.com/language/CUDALink/ref/CUDADot.html.

BibTeX

@misc{reference.wolfram_2020_cudadot, author="Wolfram Research", title="{CUDADot}", year="2010", howpublished="\url{https://reference.wolfram.com/language/CUDALink/ref/CUDADot.html}", note=[Accessed: 22-January-2021 ]}

BibLaTeX

@online{reference.wolfram_2020_cudadot, organization={Wolfram Research}, title={CUDADot}, year={2010}, url={https://reference.wolfram.com/language/CUDALink/ref/CUDADot.html}, note=[Accessed: 22-January-2021 ]}

CMS

Wolfram Language. 2010. "CUDADot." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/CUDALink/ref/CUDADot.html.

APA

Wolfram Language. (2010). CUDADot. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/CUDALink/ref/CUDADot.html