問題タブ [aleagpu]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - Alea GPU でカーネルを起動できない (C#)
Alea GPU の Web サイト ( http://www.aleagpu.com/release/3_0_3/doc/gpu_programming_csharp.html ) の例を参照していますが、カーネルを起動できません。すべてを正しく設定したと思いますが、その例でもコンパイルの問題が発生します。
次のカーネルが与えられた場合:
そして、それを実行するコード:
Visual Studio (2017 コミュニティ) は、「Gpu」には「Launch」の定義が含まれておらず、タイプ「Gpu」の最初の引数を受け入れる拡張メソッド「Launch」が見つかりませんでした (using ディレクティブまたはアセンブリ参照がありません) ?)
Alea GPU が適切にセットアップされていると思います。nuget を使用して、そのサイト ( http://www.aleagpu.com/release/3_0_3/doc/installation.html )の指示に従って、それと Fody の両方をインストールしました。Alea GPU に必要な F# パッケージもインストールしました。
私のインストールは正しいですか?もしそうなら、私は古いドキュメントを使用していますか、それともカーネルを起動しようとしている方法に何か問題がありますか?
c# - Convert CPU Parallel.For to GPU Gpu.For
I created a CPU Parallel.For loop in my code as follow:
The above code works fine and run on my CPU cores.
Want I want to do it to convert this code to a GPU For loop using "Alea GPU" library. So i tried the following:
You can see that it is the exact same code as above but with Parallel.For changed for Gpu.Default.For. But when I run it I get the following error:
I am not sure how to solve this error. Any help would be appreciated.
Update on what I tried after comments by NineBerry:
So it turns out the problem might be the Vector2 type because it might use properties. So I created my own struct which use Fields like so:
The rest of the code is pretty much the same as before. But I still get the same "i32 is not struct type." error.
Same error if I ditch all struct and use arrays of float instead:
Code dump as per comment. Creating a new instance of the class should make it run. You will need to install nuget ALEA and ALEA.FODY . Also I think you need FSharp.Core to run Alea
c# - Alea GPU 空きメモリ
free/availableのように、GPU のグローバル メモリを決定する方法を知っている人は誰でもCUDA "cudaMemGetInfo(&free_byte, &total_byte);?。
API の Web サイトを検索Aleaして、プロパティを見つけて空きバイトを特定しようとしましたが、その法案に合うものはないようです。
ありがとう。