上一页 1 2 3 4 5 6 7 8 ··· 14 下一页

2018年7月31日

QT的DPI支持

摘要: 在main函数第一行加入: QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); 鼠标不按下也响应移动事件: setMouseTracking(true); 阅读全文

posted @ 2018-07-31 16:34 万里驰骋 阅读(1755) 评论(0) 推荐(0) 编辑

2018年6月8日

cudaDeviceProp结构体

摘要: struct cudaDeviceProp {char name[256]; //器件的名字size_t totalGlobalMem; //Global Memory 的byte大小size_t sharedMemPerBlock; //线程块可以使用的共用记忆体的最大值。byte为单位,多处理器 阅读全文

posted @ 2018-06-08 16:52 万里驰骋 阅读(940) 评论(0) 推荐(1) 编辑

2018年6月7日

C#调用C++的dll各种传参

摘要: 1. 如果函数只有传入参数,比如: //C++中的输出函数 int __declspec(dllexport) test(const int N) { return N+10; } 对应的C#代码为: [DllImport("test.dll", EntryPoint = "#1")] public 阅读全文

posted @ 2018-06-07 19:49 万里驰骋 阅读(9300) 评论(0) 推荐(1) 编辑

创建CUDA项目

摘要: 输出选择X64 .cu文件属性: 常规-项类型:CUDA C/C++ 项目属性: 平台:活动(x64) CUDA C/C++ - Common-Target Machine Platform: 64-bit (--machine 64) CUDA C/C++-Device-Code Generati 阅读全文

posted @ 2018-06-07 16:54 万里驰骋 阅读(537) 评论(0) 推荐(0) 编辑

CUDA warning C4819的消除

摘要: 问题描述:在使用VS2010编译CUDA程序时,有很多C4819警告: warning C4819:The file contains a character that cannot be represented in the current codepage (936). Save the fil 阅读全文

posted @ 2018-06-07 14:04 万里驰骋 阅读(824) 评论(0) 推荐(0) 编辑

2018年6月3日

并行调用

摘要: 这几天需要用到kernel函数包含kernel函数的例子,于是出现了几种问题: 一、 error : calling a global function(“childKernel”) from a global function(“kernel”) is only allowed on the co 阅读全文

posted @ 2018-06-03 13:28 万里驰骋 阅读(729) 评论(0) 推荐(0) 编辑

解除系统对显卡线程运行时间限制

摘要: HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\GraphicsDrivers 新建一个TdrLevel:REG_DWORD 键值为0 阅读全文

posted @ 2018-06-03 12:04 万里驰骋 阅读(425) 评论(0) 推荐(0) 编辑

2018年1月18日

node模块管理

摘要: 淘宝镜像:npm install -g cnpm --registry=https://registry.npm.taobao.org 安装模块到本地:npm install http 阅读全文

posted @ 2018-01-18 10:31 万里驰骋 阅读(159) 评论(0) 推荐(0) 编辑

2018年1月6日

$.getJSON同步和异步

摘要: $.ajaxSettings.async = false; $.getJSON(url, data, function(data){ }); $.getJSON(url, data, function(data){ }); $.getJSON(url, data, function(data){ } 阅读全文

posted @ 2018-01-06 09:54 万里驰骋 阅读(840) 评论(0) 推荐(0) 编辑

2017年12月18日

canvas在高倍屏下变模糊的处理办法

摘要: 因为canvas不是矢量图,而是像图片一样是位图模式的。如果不做Retina屏适配的话,例如二倍屏,浏览器就会以2个像素点的宽度来渲染一个像素,该canvas在Retina屏幕下相当于占据了2倍的空间,相当于图片被放大了一倍,因此图片会变模糊。 因此,要做Retina屏适配,关键是知道当前canva 阅读全文

posted @ 2017-12-18 15:57 万里驰骋 阅读(2386) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 14 下一页

导航

点击右上角即可分享
微信分享提示