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
8
votes
5 answers

Alea GPU Tutorial not compiling on VS 2015 Update 2 with FSharp.Core 4.4.0.0

I am getting error while compiling Alea GPU Tutorial: https://github.com/quantalea/AleaGPUTutorial in Visual Studio 2015 Community Update 2 with FSharp.Core version 4.4.0.0 on a .Net 4.5 runtime. Fody: An unhandled exception…
TermoTux
  • 588
  • 4
  • 17
7
votes
0 answers

AleaGPU Dynamic Parallelism in F#? How?

This might be a simple question, but I have not been able to find any references to this topic: How do I launch a kernel from within another kernel?. The only relevant example I came across is the post:(Does Alea GPU support dynamic parallelism?),…
5
votes
2 answers

Is AleaGPU compatible with CUDA Toolkit 8.0

In the install documentation http://www.aleagpu.com/release/3_0_2/doc/installation.html it says to download the latest CUDA Drivers from https://developer.nvidia.com/cuda-downloads. I have done so and am not able to get some of the samples to…
Mike U
  • 2,901
  • 10
  • 32
  • 44
5
votes
2 answers

TypeInitializationException thrown by aleagpu

I am trying to use aleagpu but I get the System.TypeInitializationException. I have tried to google what the problem is but I couldn't find any solution, so please help. The program is the simplest possible: class Klazz { private const int N =…
Anders Finn Jørgensen
  • 1,275
  • 1
  • 17
  • 33
4
votes
0 answers

"'Found more than one basic block without predecessors." with my alea/c# code, and I do not have any idea why?

So I am trying to implement some code with Alea/C#. For the moment, it is basic code. I tried the tutorials and examples available at the Alea site. The examples work just fine, but when I do my own version of codes, namely, using a random walk with…
woofwoof
  • 317
  • 2
  • 12
4
votes
1 answer

Speed up nested loops and bitwise operations with Alea GPU

I'm trying to use Alea to speed up a program I'm working on but I need some help. What I need to do is a lot of bitcount and bitwise operations with values stored in two arrays. For each element of my first array I have to do a bitwise & operation…
4
votes
0 answers

Alea.Gpu on .NET Standard 2.0 - will this workaround work?

I'm writing a library which has support for GPU acceleration through the Alea.Gpu library, and so far my setup is: Base .NET Standard 2.0 binary (CPU) .NET Framework 4.7.1 with Alea.Gpu (GPU) The idea is that you'd only use the base .NET Standard…
Sergio0694
  • 4,447
  • 3
  • 31
  • 58
4
votes
0 answers

NullReferenceException in Alea GPU for an ambiguous reason

I have encountered unusual NullReferenceException while working with Alea GPU on my project, everything was working fine until i have added Parallel.For with some code after Gpu.Default.For, here is minimal code i could get to reproduce the…
Ahmed Osama
  • 854
  • 1
  • 8
  • 17
4
votes
1 answer

Floyd Warshall using Alea GPU

I've been trying to use Alea GPU to write the parallel Floyd-Warshall algorithm in F#, and basing myself on the CUDA code another user presented here The Floyd-Warshall algorithm in CUDA I wrote the following simple implementation type…
xenophon
  • 41
  • 4
3
votes
2 answers

Can I use mono64 with Visual Studio for Mac?

I'm new to Mono development (but not .NET development) - got as far as downloading Visual Studio for Mac and trying to run a sample solution from Alea GPU. It complains that it needs mono64, but I see no option for selecting 64 bit architecture like…
see sharper
  • 11,505
  • 8
  • 46
  • 65
3
votes
1 answer

Accessing IList inside Alea.Gpu.Default.For

I am trying to access values of System.Collections.Generic.IList which is declared outside Alea.Gpu.Default.For. [GpuManaged] private void Evaluate_Caching(IList genomeList) { var gpu = Gpu.Default; gpu.For(0, genomeList.Count…
dexterslab
  • 226
  • 2
  • 14
2
votes
0 answers

Calling KernelScan in AleaGPU C#

I am trying to use the AllInOne<> function given by Alea Gpu in the Alea.LibParallel.KernelScan library. However I keep running into this error: System.Exception: 'Length of shared array must be kernel compile-time constant. This is the code I'm…
Jacob Don
  • 39
  • 1
2
votes
1 answer

Convert CPU Parallel.For to GPU Gpu.For

I created a CPU Parallel.For loop in my code as follow: Vector2[] p; Vector2[] pnew; Vector2[] v; float[] m; Parallel.For(0, N, i => { double dx; double dy; double invr; double invr3; …
Maxter
  • 716
  • 7
  • 15
2
votes
1 answer

Pass Alea GPU kernel a function

Is this possible in F# with Alea GPU? Declare a function: let my_function = fun a b -> a + b Pass the kernel that function, and use it within the kernel: let result = my_function 5 9 I understand that an alternative is to simply statically declare…
2
votes
0 answers

Sample code of aleaGPU is not working in VB

C# code: [GpuManaged, Test] public static void ActionFactoryWithClosure2() { var MyGPU = Gpu.Get(0); var arg1 = Enumerable.Range(0, Length).ToArray(); var arg2 = Enumerable.Range(0, Length).ToArray(); var…
Icetiger
  • 23
  • 5
1
2 3 4 5 6 7