2015年11月9日

动态链接库动态加载

摘要: 0.typedef void (*FortFun1)(int *ii);1.HINSTANCE hDll; FortFun1 fun1;2.hDll=LoadLibrary("abc.dll"); if (hDll==NULL) error ..3.fun=(FortFun1*)GetProcAd... 阅读全文

posted @ 2015-11-09 20:52 reedlau 阅读(164) 评论(0) 推荐(0) 编辑

cudaSetDevice和线程

摘要: 1.cudaSetDevice是线程安全的2.新创建的线程默认是device 0#include #include #include #define N_THREAD 2void *thread_run(void *pp){ int *p=(int*)pp; int tid=p[... 阅读全文

posted @ 2015-11-09 14:09 reedlau 阅读(7022) 评论(2) 推荐(1) 编辑

导航