我会尝试在MAC操作系统上执行一个基于Aparapi的示例脚本。我使用的是Eclipse的最后一个版本,但是当我执行DeviceInfo示例以获得所有可用的设备时:
public class DeviceInfo {
public static void main(String[] args) {
KernelPreferences preferences = KernelManager.instance().getDefaultPreferences();
System.out.println("-- Devices in preferred order --");
for (Device device : preferences.getPreferredDevices(null)) {
System.out.println(device);
}
}
}它生成
java.lang.UnsatisfiedLinkError: com.amd.aparapi.OpenCLJNI.getPlatforms()Ljava/util/List"有人能帮我吗?
发布于 2019-05-15 13:28:34
尽管macOS Mojave 10.14.4不直接支持OpenCL,但我已经执行了。
我发现问题出在阿巴拉皮图书馆。尤其是,为了解决生成的错误,我遵循了以下步骤:
发布于 2019-05-12 11:59:49
为Mac构建本机程序集(x86_64)并将其添加到jniLibs中;下面是源代码。
java.lang.UnsatisfiedLinkError通常意味着它找不到本机程序集。
https://stackoverflow.com/questions/56097998
复制相似问题