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上工作: