我在Eclipse上的项目中使用JFasttext。但是当我运行项目时,我遇到了这个问题。我尝试了一些解决方案,但是没有用。我感到很困惑。任何人都有解决方案,请给我。
#+REVEAL_HTML: <div style="font-size: 60%;">
#+BEGIN_SRC cpp
template <typename data_type, op_type op> __global__ void stream_thread(data_type *ptr, const size_t size, data_type *output, const data_type val) {
size_t tid = threadIdx.x + blockIdx.x * blockDim.x;
size_t n = size / sizeof(data_type);
data_type accum = 0;
for (; tid < n; tid += blockDim.x * gridDim.x)
if (op == READ)
accum += ptr[tid];
else
ptr[tid] = val;
if (op == READ)
output[threadIdx.x + blockIdx.x * blockDim.x] = accum;
}
#+END_SRC
#+REVEAL_HTML: </div>