lzpong / threadpool

based on C++11 , a mini threadpool , accept variable number of parameters 基于C++11的线程池,简洁且可以带任意多的参数

Home Page:http://www.cnblogs.com/lzpong/p/6397997.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error: no instance of function template "std::threadpool::commit" matches the argument list

thuzhf opened this issue · comments

The cmd and log is as follows:
image

The function I passed is cudaHostAlloc:
image
image

How could this be fixed?

After many different kinds of tries, I find if I change *.cu to *.cc, it works like a magic! Very strange...