我有一台配备Intel Iris Pro 1024 MB的Mac OS X Marvericks,并且已经在Processing中进行了一些图形/模拟工作。我已经遇到了内置perlin噪声处理函数的性能问题。
我计划使用GPU来计算perlin噪音(或其他一些基于价值的噪音)现在我对Nvidia的CUDA有点了解,但对基于英特尔的芯片一无所知。 我甚至不确定我是否也可以这样做。
截至目前,我继续尝试JOCL 0.1.9样品,它们似乎工作正常。从此链接:http://www.jocl.org/samples/samples.html
但是我尝试从http://www.jocl.org/cloth/cloth.html运行布料模拟演示,但在命令行显示以下日志:
➜ JOCLClothDemo-0.0.4a java -cp ".:javagl-simplemesh-0.0.0.jar:javagl-simplerenderer-0.0.5.jar:javagl-utils-obj-0.1.3.jar:jocl-cloth-0.0.4a.jar:JOCL-Utils-0.0.0.jar:lwjgl.jar:lwjgl_util.jar;jocl-0.1.9.jar" org.jocl.cloth.ClothApplication
INFO : ClothApplication: Creating renderer
CONFIG : SimpleRenderers: Found factory SimpleRendererFactoryLWJGL
CONFIG : SimpleRenderers: Found factory SimpleRendererFactoryJOGL
CONFIG : SimpleRenderers: Created de.javagl.simplerenderer.lwjgl.SimpleRendererLWJGL@69684b79
INFO : ClothApplication: Creating renderer DONE
INFO : ClothApplication: Creating simulator
INFO : ClothApplication: Creating simulator DONE
WARNING: ClothApplicationGUI: No OpenCL implementation available!
WARNING: ClothApplicationGUI: No OpenCL implementation available!
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
在GUI上单击INIT会在日志中添加以下内容:
INFO : ClothApplicationSetup: Loaded DefaultMeshPrimitives[V:26248,E:78226,F:51979]
INFO : ClothOptimizer: Optimizing cloth data
INFO : ClothOptimizer: Optimizing cloth data DONE - took 440.677 ms
INFO : ClothApplicationSetup: Found simulation file for input: ./data/square_V26248_E78226_F51979.sim
INFO : ClothApplication: Initializing simulation
INFO : ClothApplication: Initializing simulation DONE
_NSJVMLoadLibrary: NSAddLibrary failed for /libjawt.dylib
JavaVM FATAL: lookup of function JAWT_GetAWT failed. Exit
所以我只需要有人指出我正确的方向,让我知道是否有可能在我的机器上编写GPU代码,如果可以,那么如果我能得到一些指示就会很棒。
感谢。