资源简介
NVIDIA GPU Computing SDK
opencl d3d interop

代码片段和文件信息
/*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use reproduction disclosure or distribution of
* this software and related documentation outside the terms of the EULA
* is strictly prohibited.
*
*/
// *********************************************************************
// Utilities specific to OpenCL samples in NVIDIA GPU Computing SDK
// *********************************************************************
#include “oclUtils.h“
#include
#include
#include
#include
#include
//////////////////////////////////////////////////////////////////////////////
//! Gets the platform ID for NVIDIA if available otherwise default
//!
//! @return the id
//! @param clSelectedPlatformID OpenCL platoform ID
//////////////////////////////////////////////////////////////////////////////
cl_int oclGetPlatformID(cl_platform_id* clSelectedPlatformID)
{
char chBuffer[1024];
cl_uint num_platforms;
cl_platform_id* clPlatformIDs;
cl_int ciErrNum;
*clSelectedPlatformID = NULL;
// Get OpenCL platform count
ciErrNum = clGetPlatformIDs (0 NULL &num_platforms);
if (ciErrNum != CL_SUCCESS)
{
shrLog(“ Error %i in clGetPlatformIDs Call !!!\n\n“ ciErrNum);
return -1000;
}
else
{
if(num_platforms == 0)
{
shrLog(“No OpenCL platform found!\n\n“);
return -2000;
}
else
{
// if there‘s a platform or more make space for ID‘s
if ((clPlatformIDs = (cl_platform_id*)malloc(num_platforms * sizeof(cl_platform_id))) == NULL)
{
shrLog(“Failed to allocate memory for cl_platform ID‘s!\n\n“);
return -3000;
}
// get platform info for each platform and trap the NVIDIA platform if found
ciErrNum = clGetPlatformIDs (num_platforms clPlatformIDs NULL);
for(cl_uint i = 0; i < num_platforms; ++i)
{
ciErrNum = clGetPlatformInfo (clPlatformIDs[i] CL_PLATFORM_NAME 1024 &chBuffer NULL);
if(ciErrNum == CL_SUCCESS)
{
if(strstr(chBuffer “NVIDIA“) != NULL)
{
*clSelectedPlatformID = clPlatformIDs[i];
break;
}
}
}
// default to zeroeth platform if NVIDIA not found
if(*clSelectedPlatformID == NULL)
{
shrLog(“WARNING: NVIDIA OpenCL platform not found - defaulting to first platform!\n\n“);
*clSelectedPlatformID = clPlatformIDs[0];
}
free
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-07-02 15:45 NVIDIA GPU Computing SDK\
目录 0 2015-07-02 15:45 NVIDIA GPU Computing SDK\OpenCL\
目录 0 2015-07-02 15:50 NVIDIA GPU Computing SDK\OpenCL\bin\
目录 0 2015-07-02 15:50 NVIDIA GPU Computing SDK\OpenCL\bin\Win32\
目录 0 2015-07-02 15:54 NVIDIA GPU Computing SDK\OpenCL\bin\Win32\Debug\
文件 1058816 2015-07-02 15:54 NVIDIA GPU Computing SDK\OpenCL\bin\Win32\Debug\oclSimpleD3D10Texture.exe
文件 6885376 2015-07-02 15:54 NVIDIA GPU Computing SDK\OpenCL\bin\Win32\Debug\oclSimpleD3D10Texture.pdb
目录 0 2015-07-02 15:45 NVIDIA GPU Computing SDK\OpenCL\bin\win64\
目录 0 2015-07-02 15:45 NVIDIA GPU Computing SDK\OpenCL\bin\win64\Debug\
文件 1008128 2012-04-08 22:40 NVIDIA GPU Computing SDK\OpenCL\bin\win64\Debug\oclSimpleD3D10Texture.exe
目录 0 2015-07-02 15:45 NVIDIA GPU Computing SDK\OpenCL\bin\win64\Release\
文件 411136 2012-04-08 22:40 NVIDIA GPU Computing SDK\OpenCL\bin\win64\Release\oclSimpleD3D10Texture.exe
目录 0 2015-07-02 15:49 NVIDIA GPU Computing SDK\OpenCL\common\
目录 0 2015-07-02 15:50 NVIDIA GPU Computing SDK\OpenCL\common\Debug\
文件 266635 2015-07-02 15:50 NVIDIA GPU Computing SDK\OpenCL\common\Debug\oclUtils.obj
目录 0 2015-07-02 15:53 NVIDIA GPU Computing SDK\OpenCL\common\Debug\oclUtils.tlog\
文件 31490 2015-07-02 15:50 NVIDIA GPU Computing SDK\OpenCL\common\Debug\oclUtils.tlog\CL.read.1.tlog
文件 844 2015-07-02 15:50 NVIDIA GPU Computing SDK\OpenCL\common\Debug\oclUtils.tlog\CL.write.1.tlog
文件 750 2015-07-02 15:50 NVIDIA GPU Computing SDK\OpenCL\common\Debug\oclUtils.tlog\Lib-li
文件 446 2015-07-02 15:50 NVIDIA GPU Computing SDK\OpenCL\common\Debug\oclUtils.tlog\Lib-li
文件 1008 2015-07-02 15:50 NVIDIA GPU Computing SDK\OpenCL\common\Debug\oclUtils.tlog\cl.command.1.tlog
文件 748 2015-07-02 15:50 NVIDIA GPU Computing SDK\OpenCL\common\Debug\oclUtils.tlog\lib.command.1.tlog
文件 239 2015-07-02 15:53 NVIDIA GPU Computing SDK\OpenCL\common\Debug\oclUtils.tlog\oclUtils.lastbuildstate
文件 1571 2015-07-02 15:53 NVIDIA GPU Computing SDK\OpenCL\common\Debug\oclUtils_vs2008.log
文件 748544 2015-07-02 15:50 NVIDIA GPU Computing SDK\OpenCL\common\Debug\vc120.idb
文件 356352 2015-07-02 15:50 NVIDIA GPU Computing SDK\OpenCL\common\Debug\vc120.pdb
目录 0 2015-07-02 15:45 NVIDIA GPU Computing SDK\OpenCL\common\inc\
目录 0 2015-07-02 15:45 NVIDIA GPU Computing SDK\OpenCL\common\inc\CL\
文件 51084 2012-02-17 01:55 NVIDIA GPU Computing SDK\OpenCL\common\inc\CL\cl.h
文件 4985 2012-02-17 01:55 NVIDIA GPU Computing SDK\OpenCL\common\inc\CL\cl_d3d10.h
文件 4724 2012-02-17 01:55 NVIDIA GPU Computing SDK\OpenCL\common\inc\CL\cl_d3d10_ext.h
............此处省略122个文件信息
- 上一篇:水动力学仿真AQWA教程
- 下一篇:词法分析器有界面
相关资源
- nVidia 控制面板 API
- mac系统显卡N卡驱动kext
- x264源码及其配置文件,用于配置树莓
- NVIDIAOpticalFlowSDK-79c6cee80a2df9a196f20afd6
- NVIDIA-linux-x86_64-384.98.run
- Edge Computing: Vision and Challenges
- 边缘计算Edge Computing的5种应用场景
- 论文研究 - 采用多GPU计算的陡峭三维
- 利用GPU破解rar密码工具
- GPU精粹1-中文版.pdf《GPU精粹:实时图形
- eetop.cn_OpenCL.Parallel Computing on the GPU
- OpenStackCloudComputingCookbook.pdf 英文原版
- Edge Computing From Hype to Reality
- GPU+编程与CG+语言之阳春白雪下里巴人
- MD5GPU.rar
- NVIDIA Safety Report 2018
-
Computers as Components.Principles of em
bed - 数据融合代码-ESTARFM
- HCIP-IntelligentComputing题库.pdf
- GPU高性能运算之CUDA源代码
- win10 vs2015 编译nms和gpunms
- NVIDIA_Tegra_Linux_Driver_Package_TX2_-32.1 Re
- GPU结构概述
- Cloud Computing 电子书
- GPU编程与CG语言之阳春白雪下里巴人
- 华硕ESC4000G2服务器使用K2及K10
- 《GPU高性能计算之CUDA》书中源代码
- 基于D3D的YV12视频渲染 更新
- AMD and Nvidia GOP 更新工具 GOPUpd_v1.9.6.
- 垃圾短信基于文本内容识别-cloudComp
评论
共有 条评论