# GPU

**URL:** https://discourse.julialang.org/c/domain/gpu/11.md?page=30

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 31

---

## [SVD solve with CUSOLVER](https://discourse.julialang.org/t/svd-solve-with-cusolver/25130)

<div class="topic-metadata">

**Author:** [@Donut\_Meepo](https://discourse.julialang.org/u/Donut_Meepo)\
**Replies:** 2\
**Last updated:** [June 11, 2019, 3:37am UTC](https://discourse.julialang.org/t/svd-solve-with-cusolver/25130 "2019-06-11T03:37:55Z")

</div>

Hi, I am trying to do eigen decomposition using CUSOLVER. But it is slower than using CPU. My gpu is GeForce 1060 maybe simply just it is not good enough? I think I am not doing it right hope someone can help me. Thank …

---

## [Using stream per cpu thread pattern](https://discourse.julialang.org/t/using-stream-per-cpu-thread-pattern/25053)

<div class="topic-metadata">

**Author:** [@Alex\_Ellison](https://discourse.julialang.org/u/Alex_Ellison)\
**Replies:** 1\
**Last updated:** [June 8, 2019, 9:08pm UTC](https://discourse.julialang.org/t/using-stream-per-cpu-thread-pattern/25053 "2019-06-08T21:08:33Z")

</div>

This CUDA tutorial demonstrates how multiple cpu threads can be spawned and each will have its own stream, which achieves great concurrency on the GPU (see section " A Multi-threading Example") GPU Pro Tip: CUDA 7 Stream…

---

## [Calling a function inside of a Kernel](https://discourse.julialang.org/t/calling-a-function-inside-of-a-kernel/25023)

<div class="topic-metadata">

**Author:** [@James\_Stickney](https://discourse.julialang.org/u/James_Stickney)\
**Replies:** 4\
**Last updated:** [June 7, 2019, 2:23pm UTC](https://discourse.julialang.org/t/calling-a-function-inside-of-a-kernel/25023 "2019-06-07T14:23:22Z")

</div>

This one has my head hurting. I’m not even sure how to explain the problem, but I’ll do my best. I am working on a project using CUDAnative and one of my kernels takes a function as an argument. I would like to pass a…

---

## [Starting Cuda programming with Julia](https://discourse.julialang.org/t/starting-cuda-programming-with-julia/25009)

<div class="topic-metadata">

**Author:** [@wiktorkujawa](https://discourse.julialang.org/u/wiktorkujawa)\
**Replies:** 3\
**Last updated:** [June 7, 2019, 1:05am UTC](https://discourse.julialang.org/t/starting-cuda-programming-with-julia/25009 "2019-06-07T01:05:32Z")

</div>

Hi, I want to start programming with CUDA language. I just bought new notebook with NVIDIA GeForce GTX 1050 graphic card and windows 10 system. I personally use Linux mint, so I want to install it on my new notebook. I r…

---

## [Is this a fair GPU benchmark?](https://discourse.julialang.org/t/is-this-a-fair-gpu-benchmark/24814)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 1\
**Last updated:** [June 1, 2019, 2:31pm UTC](https://discourse.julialang.org/t/is-this-a-fair-gpu-benchmark/24814 "2019-06-01T14:31:20Z")

</div>

Hi, I’m totally new to GPU computing, really enjoying the ease of using Julia GPU libraries, but had a question about whether my benchmark code is correct, or whether I’m leaving something on the table. The computation …

---

## [Avoiding Memory leaks using CuArrays](https://discourse.julialang.org/t/avoiding-memory-leaks-using-cuarrays/24325)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 3\
**Last updated:** [May 24, 2019, 2:51pm UTC](https://discourse.julialang.org/t/avoiding-memory-leaks-using-cuarrays/24325 "2019-05-24T14:51:53Z")

</div>

Hello, I have read that there is no garbage collection in GPUs. I have an algorithm where I use an Array{Array{CuArrays{Float32,1},1}} as a buffer. From that I sample a batch that I transform in a NTuple{CuArrays, N} to…

---

## [CUDAnative tests failing on Windows 10](https://discourse.julialang.org/t/cudanative-tests-failing-on-windows-10/24465)

<div class="topic-metadata">

**Author:** [@manderson](https://discourse.julialang.org/u/manderson)\
**Replies:** 5\
**Last updated:** [May 23, 2019, 7:57pm UTC](https://discourse.julialang.org/t/cudanative-tests-failing-on-windows-10/24465 "2019-05-23T19:57:07Z")

</div>

Hello, I’m having some platform dependent problems getting CUDAnative working all the way. On my Ubuntu system I am having no problems, but on my windows machines the tests for the package are failing and I cannot make …

---

## [CUDAnative: ^ and other operators](https://discourse.julialang.org/t/cudanative-and-other-operators/24506)

<div class="topic-metadata">

**Author:** [@samo](https://discourse.julialang.org/u/samo)\
**Replies:** 0\
**Last updated:** [May 23, 2019, 9:58am UTC](https://discourse.julialang.org/t/cudanative-and-other-operators/24506 "2019-05-23T09:58:47Z")

</div>

A simple question: is there a particular reason why there is no ^ operator in CUDAnative, but only CUDAnative.pow(x, y)? Could we have something like: x^y = pow(x,y) What about other operators? Can this be added? Tha…

---

## [GPU memory layout for custom type with different array lengths: StructArrays?](https://discourse.julialang.org/t/gpu-memory-layout-for-custom-type-with-different-array-lengths-structarrays/24479)

<div class="topic-metadata">

**Author:** [@floswald](https://discourse.julialang.org/u/floswald)\
**Replies:** 0\
**Last updated:** [May 22, 2019, 3:04pm UTC](https://discourse.julialang.org/t/gpu-memory-layout-for-custom-type-with-different-array-lengths-structarrays/24479 "2019-05-22T15:04:34Z")

</div>

I have the following example of a structure for a data type (real type has more fields): mutable struct Worker id :: Int # name T :: Int # number of periods observed t :: Int # current period w …

---

## [A small attempt at running CLArrays.jl with julia 1.0](https://discourse.julialang.org/t/a-small-attempt-at-running-clarrays-jl-with-julia-1-0/15208)

<div class="topic-metadata">

**Author:** [@y4lu](https://discourse.julialang.org/u/y4lu)\
**Replies:** 11\
**Last updated:** [May 21, 2019, 2:35pm UTC](https://discourse.julialang.org/t/a-small-attempt-at-running-clarrays-jl-with-julia-1-0/15208 "2019-05-21T14:35:16Z")

</div>

I think I got a fair way through the precompile stage, mostly just replacing immutable’s with struct’s and moving the {T}'s of func{T}() to func() where{T}, but I’ve gotten a bit stuck on an unrecognized :SSAValue, from …

---

## [Can we make a comparison/overview of different GPU computing implementations?](https://discourse.julialang.org/t/can-we-make-a-comparison-overview-of-different-gpu-computing-implementations/24294)

<div class="topic-metadata">

**Author:** [@freemint](https://discourse.julialang.org/u/freemint)\
**Replies:** 6\
**Last updated:** [May 19, 2019, 7:26pm UTC](https://discourse.julialang.org/t/can-we-make-a-comparison-overview-of-different-gpu-computing-implementations/24294 "2019-05-19T19:26:46Z")

</div>

Hello, I am overwhelmed by the sheer number of GPU computing libraries. Every day i look into it i find a new implementation so far i found: CuArrays CUDAnative ArrayFire Knet.Arrays CLArrays AMDGPUnative Vulkan and…

---

## [Back and forth transfer of data between GPU neural net and CPU simulation](https://discourse.julialang.org/t/back-and-forth-transfer-of-data-between-gpu-neural-net-and-cpu-simulation/24328)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 0\
**Last updated:** [May 17, 2019, 2:51pm UTC](https://discourse.julialang.org/t/back-and-forth-transfer-of-data-between-gpu-neural-net-and-cpu-simulation/24328 "2019-05-17T14:51:13Z")

</div>

Hello, I have a neural network that interacts with a simulation. To accelerate its training, the network is transfered to my GPU. I implemented my simulation as a structure that handles other structures. In my toy exam…

---

## [Error "ERROR\_NO\_BINARY\_FOR\_GPU" with CUDAnative.jl/CuArrays.jl](https://discourse.julialang.org/t/error-error-no-binary-for-gpu-with-cudanative-jl-cuarrays-jl/24130)

<div class="topic-metadata">

**Author:** [@v-i-s-h](https://discourse.julialang.org/u/v-i-s-h)\
**Replies:** 4\
**Last updated:** [May 13, 2019, 3:45am UTC](https://discourse.julialang.org/t/error-error-no-binary-for-gpu-with-cudanative-jl-cuarrays-jl/24130 "2019-05-13T03:45:26Z")

</div>

Hi, I’m trying to install CuArrays.jl. Even though installation finishes without any errors, the tests are failing with the following error message: CUDA error: no kernel image is available for execution on the devic…

---

## [Installing CuArrays without libcuda?](https://discourse.julialang.org/t/installing-cuarrays-without-libcuda/23939)

<div class="topic-metadata">

**Author:** [@jstrube](https://discourse.julialang.org/u/jstrube)\
**Replies:** 7\
**Last updated:** [May 7, 2019, 6:00pm UTC](https://discourse.julialang.org/t/installing-cuarrays-without-libcuda/23939 "2019-05-07T18:00:12Z")

</div>

I’m working on a shared system, and the admins are making various CUDA versions available via module load. Unfortunately, the installed modules don’t contain libcuda.so, but it looks like pretty much everything else is t…

---

## [GPU - CLArrays, GPUArrays - Extract a Matrix from an Array](https://discourse.julialang.org/t/gpu-clarrays-gpuarrays-extract-a-matrix-from-an-array/23741)

<div class="topic-metadata">

**Author:** [@MatsMor](https://discourse.julialang.org/u/MatsMor)\
**Replies:** 2\
**Last updated:** [May 1, 2019, 9:07pm UTC](https://discourse.julialang.org/t/gpu-clarrays-gpuarrays-extract-a-matrix-from-an-array/23741 "2019-05-01T21:07:05Z")

</div>

Hi all, I am new with GPU programming (and therefore CLArrays and GPUArrays). I am building a simple kernel using those 2 packages and I need to extract an entire row (or any sub-matrix) of a very large Array (call it A…

---

## [Binding something to juliaGPU](https://discourse.julialang.org/t/binding-something-to-juliagpu/23508)

<div class="topic-metadata">

**Author:** [@Dragon20180618](https://discourse.julialang.org/u/Dragon20180618)\
**Replies:** 2\
**Last updated:** [April 25, 2019, 2:55pm UTC](https://discourse.julialang.org/t/binding-something-to-juliagpu/23508 "2019-04-25T14:55:49Z")

</div>

I want to binding MAGMA to juliaGPU. Create such binding by simply calling its C API via ccall. By binding this to the JuliaGPU ecosystem. But I don’t know how to write codes about that. I need some help.

---

## [CUDAnative/CuArrays: performance regression for memcopy code](https://discourse.julialang.org/t/cudanative-cuarrays-performance-regression-for-memcopy-code/23253)

<div class="topic-metadata">

**Author:** [@samo](https://discourse.julialang.org/u/samo)\
**Replies:** 3\
**Last updated:** [April 18, 2019, 7:58am UTC](https://discourse.julialang.org/t/cudanative-cuarrays-performance-regression-for-memcopy-code/23253 "2019-04-18T07:58:40Z")

</div>

Hi all, I just updated CUDAnative, CUDAdrv, CuArrays and GPUArrays to use the master version. Now, the following test for sustained performance of device to device memory copy shows a performance regression from about 5…

---

## [How to round off a Float32 to Int32 on GPU](https://discourse.julialang.org/t/how-to-round-off-a-float32-to-int32-on-gpu/23129)

<div class="topic-metadata">

**Author:** [@11116](https://discourse.julialang.org/u/11116)\
**Replies:** 4\
**Last updated:** [April 16, 2019, 11:11am UTC](https://discourse.julialang.org/t/how-to-round-off-a-float32-to-int32-on-gpu/23129 "2019-04-16T11:11:34Z")

</div>

using CUDAdrv, CUDAnative,CuArrays #try to convert a Float32 to Int32 function addKernel!(x,y,θ) x = threadIdx().x+blockDim().x\*(blockIdx().x-1) m = x\*CUDAnative.cos(θ)+CUDAnative.sin(θ)\*y z = Int32(m) x\[…

---

## [I am getting an error when building CuArrays](https://discourse.julialang.org/t/i-am-getting-an-error-when-building-cuarrays/23059)

<div class="topic-metadata">

**Author:** [@mgalenb](https://discourse.julialang.org/u/mgalenb)\
**Replies:** 7\
**Last updated:** [April 15, 2019, 5:22am UTC](https://discourse.julialang.org/t/i-am-getting-an-error-when-building-cuarrays/23059 "2019-04-15T05:22:54Z")

</div>

I have installed CUDA 9.0 toolkit and Xcode and i have exported to PATH but when i build CuArrays i get this error: Building SpecialFunctions → \`~/.julia/packages/SpecialFunctions/fvheQ/deps/build.log\` Building CUDA…

---

## [Any good OpenCL examples to demonstrate a speedup?](https://discourse.julialang.org/t/any-good-opencl-examples-to-demonstrate-a-speedup/22656)

<div class="topic-metadata">

**Author:** [@xor0110](https://discourse.julialang.org/u/xor0110)\
**Replies:** 4\
**Last updated:** [April 3, 2019, 5:44am UTC](https://discourse.julialang.org/t/any-good-opencl-examples-to-demonstrate-a-speedup/22656 "2019-04-03T05:44:50Z")

</div>

I am taking my first steps trying to use Julia with GPUs, even though all I have available in my machine is a humble integrated Intel chip (UHD Graphics 620). I was pretty stoked to manage to run the CLBlast.jl example, …

---

## [Trouble building Docker container with CuArrays](https://discourse.julialang.org/t/trouble-building-docker-container-with-cuarrays/22347)

<div class="topic-metadata">

**Author:** [@edwardchalstrey1](https://discourse.julialang.org/u/edwardchalstrey1)\
**Replies:** 2\
**Last updated:** [March 26, 2019, 2:32pm UTC](https://discourse.julialang.org/t/trouble-building-docker-container-with-cuarrays/22347 "2019-03-26T14:32:36Z")

</div>

I’m trying to run my Docker container containing benchmarks of my Julia code that uses Flux/CuArrays but I’m unable to even build it, even on my VM with CUDA toolkit installed: Error: Error building CUDAdrv: Could not …

---

## [Random numbers in CUDA](https://discourse.julialang.org/t/random-numbers-in-cuda/22239)

<div class="topic-metadata">

**Author:** [@Ferran\_Mazzanti](https://discourse.julialang.org/u/Ferran_Mazzanti)\
**Replies:** 3\
**Last updated:** [March 23, 2019, 11:08am UTC](https://discourse.julialang.org/t/random-numbers-in-cuda/22239 "2019-03-23T11:08:00Z")

</div>

Hi again, just in an attempt to build a very simple Monte Carlo calculation that uses the GPU, I need to generate random numbers. What is the current best way to get a bunch of random numbers with the GPU? I tried thing…

---

## [Exponents with CuArrays](https://discourse.julialang.org/t/exponents-with-cuarrays/22218)

<div class="topic-metadata">

**Author:** [@bryce](https://discourse.julialang.org/u/bryce)\
**Replies:** 2\
**Last updated:** [March 23, 2019, 8:00am UTC](https://discourse.julialang.org/t/exponents-with-cuarrays/22218 "2019-03-23T08:00:55Z")

</div>

I’m trying out what I thought were some basic array operations with CuArrays, and have discovered that I can’t do exponents (a.^b) with CuArrays. Here’s a minimal example: julia\> m = CuArrays.cu(\[1\]) 1-element CuArrays.…

---

## [Error installing CuArrays](https://discourse.julialang.org/t/error-installing-cuarrays/17641)

<div class="topic-metadata">

**Author:** [@Seif\_Shebl](https://discourse.julialang.org/u/Seif_Shebl)\
**Replies:** 6\
**Last updated:** [March 22, 2019, 2:31pm UTC](https://discourse.julialang.org/t/error-installing-cuarrays/17641 "2019-03-22T14:31:51Z")

</div>

I’m facing the following errors when I try to install CuArrays. I use Julia 1.0.1 on a Windows 10 machine. The graphics card installed is the GeForce GTX 980. Any help is appreciated. julia\> using CuArrays \[ Info: Preco…

---

## [CUDA fft against CPU fft](https://discourse.julialang.org/t/cuda-fft-against-cpu-fft/22029)

<div class="topic-metadata">

**Author:** [@Ferran\_Mazzanti](https://discourse.julialang.org/u/Ferran_Mazzanti)\
**Replies:** 4\
**Last updated:** [March 19, 2019, 6:50pm UTC](https://discourse.julialang.org/t/cuda-fft-against-cpu-fft/22029 "2019-03-19T18:50:38Z")

</div>

Dear all, in my attempts to play with CUDA in Julia, I’ve come accross something I can’t really understand -hopefully because I’m doing something wrong. The fact is that in my calculations I need to perform Fourier tran…

---

## [Tutorial on GPU programming on julia](https://discourse.julialang.org/t/tutorial-on-gpu-programming-on-julia/21957)

<div class="topic-metadata">

**Author:** [@Ferran\_Mazzanti](https://discourse.julialang.org/u/Ferran_Mazzanti)\
**Replies:** 5\
**Last updated:** [March 19, 2019, 10:01am UTC](https://discourse.julialang.org/t/tutorial-on-gpu-programming-on-julia/21957 "2019-03-19T10:01:34Z")

</div>

Hi, I’m starting to appreciate CUDA programming in Julia, but find hard to learn how to do that properly since I can not find any tutorial or book on that. I’ve read the documentation about CuArrays.jl and CUDAnative.jl…

---

## [Value Function Iteration on GPU](https://discourse.julialang.org/t/value-function-iteration-on-gpu/13774)

<div class="topic-metadata">

**Author:** [@myroslav](https://discourse.julialang.org/u/myroslav)\
**Replies:** 6\
**Last updated:** [March 9, 2019, 7:12pm UTC](https://discourse.julialang.org/t/value-function-iteration-on-gpu/13774 "2019-03-09T19:12:13Z")

</div>

Hi, I am trying to understand how to do the very basic Value Function Iteration in an Overlapping Generations Model using the GPU. So far it works well on the CPU, but I am starting to run into trouble once I increase t…

---

## [error building CuArrays in Julia 1.0](https://discourse.julialang.org/t/error-building-cuarrays-in-julia-1-0/21556)

<div class="topic-metadata">

**Author:** [@wenquan](https://discourse.julialang.org/u/wenquan)\
**Replies:** 4\
**Last updated:** [March 8, 2019, 8:06pm UTC](https://discourse.julialang.org/t/error-building-cuarrays-in-julia-1-0/21556 "2019-03-08T20:06:23Z")

</div>

Error: Error building CUDAdrv: Building against CUDA driver stubs, which is not supported. I built CUDAdrv successfully in Julia 0.6.4, and I don’t know what’s the problem here. Any suggestions? Below is version inf…

---

## [Strange behavior inside a for-loop with ArrayFire](https://discourse.julialang.org/t/strange-behavior-inside-a-for-loop-with-arrayfire/21187)

<div class="topic-metadata">

**Author:** [@Noel\_Araujo](https://discourse.julialang.org/u/Noel_Araujo)\
**Replies:** 3\
**Last updated:** [February 26, 2019, 4:58pm UTC](https://discourse.julialang.org/t/strange-behavior-inside-a-for-loop-with-arrayfire/21187 "2019-02-26T16:58:50Z")

</div>

Hello everyone, I have a issue and I don’t even know the exactly cause. I am using ArrayFire to speed up some matrix multiplications. However, I cannot retrieve the data unless I do some useless operation into my data. …

---

## [Using CUSOLVER in CuArrays.jl](https://discourse.julialang.org/t/using-cusolver-in-cuarrays-jl/21020)

<div class="topic-metadata">

**Author:** [@eliassno](https://discourse.julialang.org/u/eliassno)\
**Replies:** 12\
**Last updated:** [February 26, 2019, 2:21pm UTC](https://discourse.julialang.org/t/using-cusolver-in-cuarrays-jl/21020 "2019-02-26T14:21:35Z")

</div>

I’m writing a GPU-version of gesv!, using CuArrays.jl. The following works: using CuArrays, LinearAlgebra, Test function gpugesv!(A,b) A, ipiv = CuArrays.CUSOLVER.getrf!(A) CuArrays.CUSOLVER.getrs!('N'…

[Previous page](https://discourse.julialang.org/c/domain/gpu/11.md?page=29)

[Next page](https://discourse.julialang.org/c/domain/gpu/11.md?page=31)
