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
1
vote
1 answer

Alea CUDA Jagged Arrays

I have arrays a and b both of signature double[][]. I want to compare the children of those arrays in my kernel (they are of the same length). At the moment I get an error when use data = this.GPUWorker.MallocArray(data) is called. Exception…
tams89
  • 87
  • 1
  • 5
1
vote
2 answers

How can we free GPU memory of an array with AleaGpu ? (on the GPU card)

How can we free GPU memory of an array with AleaGpu ? (on the GPU card) Inside the function/sub, if we want to free GPU memory of array dOutputs,dInputs, how should we do it ? 1/ Will "dOutputs.Dispose(); dInputs.Dispose();" free the GPU memory…
Emmanuel
  • 21
  • 5
1
vote
1 answer

How to make Alea faster?

Having done some work implementing various ML algorithms in Alea, I've tried benchmarking some simple, but essential routines in Alea. It surprised me to find out that Alea' takes roughly 3x longer than the equivalent cuBLAS call to sgeam do the…
Marko Grdinić
  • 3,798
  • 3
  • 18
  • 21
1
vote
2 answers

Alea does not dispose memory correctly

The following F# code crashes on the third call with a no memory exception. Either I am missing something or Alea is not freeing memory correctly for some reason. I've tried it in both F# Interactive and Compiled. I've also tried calling dispose…
Marko Grdinić
  • 3,798
  • 3
  • 18
  • 21
1
vote
1 answer

Alea.cubase gpu programming in F#

While running one piece of code using Alea.cuBase I am getting a type initialization exception let worker = Engine.workers.DefaultWorker System.TypeInitializationException was unhandled Message: The type initializer for 'Worker' threw an…
anushri
  • 67
  • 5
0
votes
0 answers

Alea GPU Project Setup

I am trying to get the "simple to use" Alea Libary to work (I have a RTX2080, so this shouldn't be the Problem). The UI is WPF based and implemented in a .NET Core 3.1 project. It injects a "GpuCalculator" object into the "Core.Lib" (.Net Standard…
Eru Iluvatar
  • 353
  • 1
  • 5
  • 17
0
votes
1 answer

How to use/Convert C# class in Alea?

I'm working on a RayMarching Program(HomeWork) and I want it to go faster so I use the GPU with the ALEA extension. I have a problem because I can't Use The class camera In the parallel for (GPU). Thanks for your help. I already tried to change the…
0
votes
1 answer

How to tell Alea GPU to AOT?

I want to AOT compile a kernel. I tried using the AOT attribute but looks like Alea.Fody was part of Alea v2 and was dis continued. Can Alea precompile code? If so, how do I tell Alea to precompile it?
Maxim Khanov
  • 434
  • 2
  • 8
0
votes
1 answer

Trying to find large prime numbers with Alea GPU

An exception occurs when I try to find the 100,000th prime number using Alea GPU. The algorithm works fine if I try to find a smaller prime number e.g. the 10,000th prime number. I am using Alea v3.0.4, NVIDIA GTX 970, Cuda 9.2 drivers. I am new to…
pepsimax
  • 13
  • 3
0
votes
2 answers

Cannot launch kernel in Alea GPU (C#)

I have been referencing the examples on Alea GPU's website (http://www.aleagpu.com/release/3_0_3/doc/gpu_programming_csharp.html), but I am unable to get a Kernel to launch. I believe I have set everything up correctly but even their examples give…
Joshua
  • 1
  • 2
0
votes
0 answers

Attribute [GpuManaged] throws exception during runtime

I am getting Found more than one basic block without predecessors exception: When trying to execute following code: static void Main(string[] args) { var gpu = Gpu.Default; gpu.For(0, 100, idx => Do(idx)); // on this line …
Alex
  • 4,607
  • 9
  • 61
  • 99
0
votes
0 answers

VisualStudio shows an error when adding GpuManaged attribute

I get Fody/Alea: TODO Transform: ILLabel error in VS, when trying to compile following code: static void Main(string[] args) { var gpu = Gpu.Default; gpu.For(0, 100, idx => Do(idx)); Console.ReadKey(); } [GpuManaged] public static void…
Alex
  • 4,607
  • 9
  • 61
  • 99
0
votes
0 answers

Run DLL only in debug mode

I'm working on AI SDK but I use Alea GPU dlls. My problem is that Alea has a bug in release mode which I think is because of some compiler condition. So... is any chance or way to run included dll only in debug mode and rest of the app in release…
Shoxik
  • 119
  • 1
  • 7
0
votes
1 answer

Disable lazy compilation on Alea GPU For loop

I started playing with Alea GPU library for C# and I'm having great fun working with CUDA in familiar environment. However, I tackled an issue that I can't solve easily. So I have this small portion of code written using Alea…
Konrad
  • 1,014
  • 1
  • 13
  • 24
0
votes
1 answer

Alea GPU for loop cannot get field

I am just starting with ALEA and I am curious how you can access other types and references inside a given gpu parallel.for. when i do the following i get a runtime error that states "Cannot get field random. Possible reasons: 1) Static field is not…
skevthedev
  • 447
  • 1
  • 7
  • 20