JuliaGPU/CUDA.jl

Exponential of CuArray

Open

#1,418 创建于 2022年3月1日

在 GitHub 查看
 (7 评论) (0 反应) (0 负责人)Julia (274 fork)batch import
cuda arrayenhancementgood first issue

仓库指标

Star
 (1,408 star)
PR 合并指标
 (平均合并 5天 5小时) (30 天内合并 16 个 PR)

描述

Calculating the exponential of a GPU matrix yields errors:

using CUDA
A = cu([1.0, 1;0 1])
CUDA.exp(A)

results in an error: ERROR: ArgumentError: cannot take the CPU address of a CuArray{Float32, 2, CUDA. Mem.DeviceBuffer}

Trying to do this via ExponentialUtils also throws errors. It seems that the function called does not work properly for GPU arrays, either because indexing is done explicitly somewhere, or because some precompiled library is called that can only handle CPU arrays. This seems like a basic functionality, so I'm not sure if I'm requesting a new feature, if this is a bug, or if I'm just doing something wrong.

贡献者指南