91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 10.51MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2023-10-25
  • 語言: 其他
  • 標簽: NVIDIA??GPU??Computing??SDK??

資源簡介

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?????????????{
????????????????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-link.read.1.tlog
?????文件?????????446??2015-07-02?15:50??NVIDIA?GPU?Computing?SDK\OpenCL\common\Debug\oclUtils.tlog\Lib-link.write.1.tlog
?????文件????????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個文件信息

評論

共有 條評論