我的问题是关于opencl调用clGetDeviceInfo,其中CL_DEVICE_LOCAL_MEM_SIZE作为参数.
它是返回每个工作组的本地内存量,还是它是设备上本地可用的内存总量?还是其他什么?
我的GPU是Nvidia GeForce 9800 GT,上述调用的返回值是16K.
提前致谢!
我在ExternalProject_Add中包含一个外部项目。我想要做的是
cmake -DCMAKE_CXX_COMPILER=<some compiler> <assume correct path>
Run Code Online (Sandbox Code Playgroud)
顶级项目,以便我选择的编译器传播到外部包含的项目。我希望可以在ExternalProject_Add命令中添加一些内容:
ExternalProject_Add (
some_external_project
PREFIX ... # Assume this works.
GIT_REPOSITORY ... # Assume this works too.
# What should I write here to tell it to use the ${CMAKE_CXX_COMPILER}
# of the top-level project ?
)
Run Code Online (Sandbox Code Playgroud)