Questions tagged [aleagpu]

Alea GPU is a cross-platform GPU development environment for .NET. It supports all .NET languages (C#, F# and VB.NET) and allows reusing the same code-base for CPU and GPU computations.

Alea GPU is a professional GPU development environment for .NET.

  • Supports all .NET languages, including C#, F# and VB.
  • Improves developer productivity with first class tooling for coding, debugging and profiling, fully integrated in Visual Studio™.
  • Reduces development time with pre-fabricated GPU algorithms and libraries.
  • Increases agility with GPU scripting and a REPL in Visual Studio™ for rapid prototyping of GPU code.

With Alea GPU the .NET framework can be used as a cross platform technology for the CPU and GPU code base.

  • Runs on Windows, Linux and Mac OS X.
  • Single code base for multiple platforms - build once and run on any platform supporting either .NET or Mono.
  • Simplified deployment because generated assemblies are binary compatible for all platforms.

Alea GPU generates code which is as fast as native CUDA C/C++, with the benefit of being seamlessly integrated with .NET and Mono.

It can be used to develop GPU accelerated applications at all levels of sophistication, from simple GPU kernels up to complex GPU algorithms using textures, shared memory and other advanced GPU programming techniques.

Source: Alea GPU Manual

96 questions
0
votes
1 answer

matrix multiplication using cuBLAS on alea gpu

I'm trying to use Gemm for matrix multiplication on Alea GPU, however, this code gives the wrong result. Gpu gpu = Gpu.Default; Blas blas = new Blas(gpu); int m=2,n=3; //in dimension and out dimension (output will be mxn matrix) int…
koonyook
  • 159
  • 1
  • 8
0
votes
1 answer

cuFFT in Alea GPU

I am using Alea GPU to program on GPU using C# language. I installed Alea 3.0.4 on Visual Studio 2017 project, but I can't find some cuFFT library. On NVidia's website stands cuFFT is part of CUDA Toolkit, so I don't need to download additional CUDA…
user8011403
0
votes
3 answers

Alea 3.0.3 C# sample program crashing with reference to F# System.TypeInitializationException

I started a new VS2017 c# console app project and installed Alea and Alea.Fody from package manager. Running a piece of sample code from the website gave me the following exception. System.TypeInitializationException occurred HResult=0x80131534 …
jojoshua
  • 143
  • 2
  • 7
0
votes
1 answer

Alea GPU - Passing structures of arrays

I have a simple question. Is it possible to write structures of arrays like this with Alea.Gpu? public struct SVDFactorsStructGpu { public deviceptr ItemsBiases; public deviceptr UsersBiases; …
0
votes
1 answer

Alea GPU Compiler directives like "__unroll"?

Just discovered Alea.Gpu and am very pleased with its simplicity of use and C# integration. However I was just wondering if compiler directives such as "__unroll" are available somewhere? It seems that it used to be available in the Alea.CUDA…
0
votes
1 answer

Alea doesnt release memory correctly

it seems that Alea is not disposing class DeviceMemory2D correctly my code for checking free memory let getFreeMemory () = let free = Marshal.AllocHGlobal sizeof let total = Marshal.AllocHGlobal sizeof let freePtr =…
JokingBear
  • 39
  • 2
  • 8
0
votes
1 answer

How do I use CAS (compare and set) operation

How can I read-modify-write the same variable from multiple GPU threads? In C++AMP I used the standard lib's compare-and-set function, but I haven't found an example in AleaGPU. I know the goal is to avoid such things, but without getting into much…
Digiproc
  • 215
  • 1
  • 9
0
votes
2 answers

CuBlas Matrix Addition using axpy

I'm trying to do matrix addition using Alea CuBlas axpy, but it seems to only add the top row let matrixAddition (a:float[,]) (b: float[,]) = use mA = gpu.AllocateDevice(a) use mB = gpu.AllocateDevice(b) …
JokingBear
  • 39
  • 2
  • 8
0
votes
0 answers

How to copy from int[,] to int[] in the kernel?

In my kernel I compare two large int[,] lemmaA and lemmaB with each other. they are allocated to the GPU by gpu.Allocate(). my kernel looks like: private static void Kernel(int[,] lemmaA, int[,] lemmaB, int[] result, int L, int x) { var start =…
Anders Finn Jørgensen
  • 1,275
  • 1
  • 17
  • 33
0
votes
0 answers

How do I pass a pointer to unmanaged memory (an IntPtr) to an Alea CUDA kernel?

I have an IntPtr hData that points to the beginning of an array of data that is stored in unmanaged memory. When I try to pass it using the CUDA kernel described below, I get a System.Exception: i64 is not a struct type. How should I be passing in…
ArKi
  • 681
  • 1
  • 10
  • 22
0
votes
1 answer

Loop around GPULaunch or in the Kernel with ALEA Library

I need to run my GPU Kernel (ALEA Library) 100 times with the same data using one integer (0-99) as the parameter. I tried to implement this loop in the Kernel but I got strange results. I had to take the loop out of the kernel and around the…
0
votes
2 answers

Unable to load DLL 'curand64_80'

This is my first time trying to run the Alea TK MNIST example on my machine. I installed CUDA 8 and everything in accordance with http://www.aleagpu.com/release/3_0_2/doc/installation.html However running it I always get this error: Unable to load…
Sam7
  • 3,382
  • 2
  • 34
  • 57
0
votes
1 answer

clrobj() does not have llvm when passing array of struct to GPU Kernel (ALEA Library)

I am getting the "Fody/Alea.CUDA: clrobj(cGPU) does not have llvm" build error for a code in which I try to pass an array of struct to the NVIDIA Kernel using ALEA library. Here is a simplified version of my code. I removed the output gathering…
0
votes
1 answer

"Could not resolve name" while debugging ALEA Kernel with Atomic Operation (atomic_add)

I am using ALEA GPU for GPU Programming (C#). If I use an Atomic Operation like atomic_add in the Kernel, I get "Could not resolve name" error in CUDA WarpWatch window for my variables during Kernel debugging. I see the values of blockIdx.x,…
0
votes
1 answer

Is it possible to run Alea GPU on MacBook Pro in Virtual Machine

I just watched the Daniel Egloff interview on Channel9 and noticed he was using a MacBook Pro. https://channel9.msdn.com/Blogs/Seth-Juarez/Radically-Simplified-GPU-Programming-with-C Is it possible to run Alea GPU inside a Parallels or VMWare VM on…
Mike U
  • 2,901
  • 10
  • 32
  • 44