Cudafy.NET
1.0.5
這是在CodePlex上託管的原始cudafy.net庫的更新,該庫支持MacOS和Linux上的Mono。
通過在cudafy.net項目上使用ilmerge更新解決方案以創建單個DLL。使用VS 2017,目標釋放/AnyCPU編譯。
編譯後,創建一個名為cudafy.net.dll.config的文件,並具有以下內容:
< configuration >
< dllmap dll = " OpenCL " target = " /opt/intel/opencl/lib64/libOpenCL.so " os = " !windows,osx " />
< dllmap dll = " OpenCL " target = " /System/Library/Framework/OpenCL.framework/OpenCL " os = " osx " />
</ configuration >要在Linux上使用Intel處理器上的OpenCL支持,請安裝Intel Opencl Runtimes:https://software.intel.com/en-us/articles/opencl-drivers#cpu-lin-rin-rin-rin-rin-rin-rin-rin-rin-rin-rin
MacOS無需採取進一步的措施。
Linux不支持GPU功能的動態啟動,即
gpu . Launch ( ) . thekernel ( ) ;將拋出一個“失踪成員”例外。只有標準發布才能起作用:
gpu . Launch ( 1 , 1 , “ thekernel ” ) ; Cudafy在MacOS和Linux上的DWSIM上工作: