this is my code that calls a cuda API,i run it in visual studio 2008.it opens an window but doesn't show anything!can u tell me what is my problem?how can i fix it?
#include <iostream>
#include <stdio.h>
#include <cuda.h>
#include <conio.h>
#include <windows.h>
int main()
{
HRESULT __stdcall NVGetHWEncodeCaps();
getch();
return 0;
}
'num2.exe': Loaded 'C:\Windows\System32\ntdll.dll'
'num2.exe': Loaded 'C:\Windows\System32\kernel32.dll'
'num2.exe': Loaded 'C:\Windows\System32\KernelBase.dll'
'num2.exe': Loaded 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.2\bin\cudart64_42_9.dll', Binary was not built with debug information.
The thread 'Win64 Thread' (0x28c) has exited with code -1073741510 (0xc000013a).
The program '[2648] num2.exe: Native' has exited with code -1073741510 (0xc000013a).
---
API:
NVGetHWEncodeCaps
Description:
Query if the GPU supports the NVIDIA CUDA Video encoder
Syntax:
HRESULT __stdcall NVGetHWEncodeCaps(void)
Parameter:
None
Return Value:
S_OK: CUDA based encoding is supported
E_FAIL: No CUDA capability present
Remarks:
None