0

我想使用 Ubuntu 用 C 语言开发一个基于 OpenCL 的应用程序。

但是开发包让我不知所措:

$ apt-cache search opencl | grep dev
ocl-icd-dev - Development files to build a ICD Loader
ocl-icd-opencl-dev - OpenCL development files
beignet-dev - OpenCL for Intel GPUs (development files and documentation)
libarrayfire-cpu-dev - Development files for ArrayFire (CPU backend)
libarrayfire-dev - Common development files for ArrayFire
libarrayfire-opencl-dev - Development files for ArrayFire (OpenCL backend)
libarrayfire-unified-dev - Development files for ArrayFire (unified backend)
libasl-dev - development files for ASL
libclblas-dev - development files for clBLAS
libclc-dev - OpenCL C language implementation - development files
libclfft-dev - development files for clFFT
libforge-dev - development files for forge
libgpuarray-dev - development files for libgpuarray
libigc-dev - Intel graphics compiler for OpenCL -- core development files
libigdfcl-dev - Intel graphics compiler for OpenCL -- OpenCL development files
libigdgmm-dev - Intel Graphics Memory Management Library -- development files
liboclgrind-dev - development files for Oclgrind
libopencl-clang-dev - thin wrapper for clang -- development files
libopentk-cil-dev - Open Toolkit wrapper for OpenGL, OpenAL and OpenCL - Dev files
libpocl-dev - development files for the pocl library
librandom123-dev - parallel random numbers library
libviennacl-dev - Scientific computing library written in C++ based on OpenCL
oclgrind - OpenCL device simulator
opencl-clhpp-headers - C++ headers for OpenCL development
nvidia-opencl-dev - NVIDIA OpenCL development files

我可以只选择 nvidia opencl-dev,还是需要不同的包?我将在 nVidia 上进行调试,但我希望它也能在 AMD 上运行。

4

1 回答 1

1

你不需要它们中的任何一个。看到这个答案

于 2020-09-28T20:57:42.397 回答