摘要: 事件eventcudaEvent_t start,stop;cudaEventCreate(&start);cudaEventCreate(&stop);cudaEventRecord(start,0);{ //统计的代码段 …………}cudaEventRecord(stop,0);float... 阅读全文
posted @ 2014-09-22 21:16 青竹居士 阅读(2032) 评论(0) 推荐(0)
摘要: 基于共享内存的位图,项目打包下载 1 /* 2 * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. 3 * 4 * NVIDIA Corporation and its licensors retain all intell... 阅读全文
posted @ 2014-09-22 16:35 青竹居士 阅读(374) 评论(0) 推荐(0)
摘要: 项目打包下载 1 /* 2 * Copyright 1993-2010 NVIDIA Corporation. All rights reserved. 3 * 4 * NVIDIA Corporation and its licensors retain all intellectual... 阅读全文
posted @ 2014-09-22 15:49 青竹居士 阅读(219) 评论(0) 推荐(0)
摘要: char分为有符号性(signed)和无符号型(unsigned)两种:Ø若是signed型,就意味着取值范围为[-128,127];Ø若是unsigned型,就意味着取值范围为[0,255];C语言中我们通常直接用类型char,但是它究竟是被当做signed型还是unsigned型,由编译器决定。... 阅读全文
posted @ 2014-09-22 10:44 青竹居士 阅读(1943) 评论(0) 推荐(0)