Cuda Fatal Error C1083 Cannot Open Include File
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss
Cuda Sdk
the workings and policies of this site About Us Learn more about
Theano Windows
Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each https://devtalk.nvidia.com/default/topic/471420/cuda-amp-vs-c-2008-express-edition/ other. Join them; it only takes a minute: Sign up NVIDIA SDK is missing a header file up vote 1 down vote favorite I am writing a simple program and trying to include this file in my code #include but I am getting an error.. fatal error C1083: Cannot open include file: 'cutil_inline.h': No such file or http://stackoverflow.com/questions/14313956/nvidia-sdk-is-missing-a-header-file directory I have tried this but still getting the error Error: fatal error C1083: Cannot open include file: 'cutil_inline.h': No such file or directory Solution: 1- right-click on project name in solution explorer window 2- Click "Properties" 3- in left window Click Configuration Properties -> Linker 4- set the value of "Additional Library Directories" to "$(CUDA_PATH)/lib/$(PlatformName)";"$(NVSDKCOMPUTE_ROOT)/C/common/lib" 5- Right-click on your .cu file 6- Click Properties 7- Click on Cuda Runtime API 8- Set Additional Include Directories to : $(CUDA_PATH)/include;./;$(NVSDKCOMPUTE_ROOT)/C/common/inc;$(NVSDKCOMPUTE_ROOT)/shared/inc Can anybody help me out here. ? visual-studio-2010 cuda gpu nvidia share|improve this question edited Jan 14 '13 at 8:48 Michael Foukarakis 20.5k35089 asked Jan 14 '13 at 6:04 Hadi 88112 Can you please edit your question title into something more meaningful? Also can you edit your question and include what CUDA version you are trying to use? –talonmies Jan 14 '13 at 8:25 add a comment| 1 Answer 1 active oldest votes up vote 0 down vote accepted Note you are missing a header, not a library. Making changes in
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this http://stackoverflow.com/questions/8168337/cannot-open-include-file-in-cu site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x http://www.dreamincode.net/forums/topic/130350-cant-find-header/ Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Cannot cannot open open include file in .cu up vote 0 down vote favorite I have a visual studio c++ project (with VS 2010 and insight 2) which contains a cuda file. Here's the code Hello.h : #pragma once #pragma warning(push) #pragma warning(disable:4996) #include "thrust\device_vector.h" #pragma warning(pop) class Hello { public: Hello( const thrust::host_vector& data ); unsigned long Sum(); unsigned long Max(); private: thrust::device_vector m_data; cannot open include } Hello.cu : #include "thrust\host_vector.h" #include "thrust\device_vector.h" #include "thrust\extrema.h" #include "Hello.h" using namespace ::thrust; Hello::Hello( const thrust::host_vector& data ) : m_data( data.cbegin(), data.cend() ) { } unsigned long Hello::Sum() { return( reduce( m_data.cbegin(), m_data.cend(), ( unsigned long )0, plus() ) ); } unsigned long Hello::Max() { return( *max_element( m_data.cbegin(), m_data.cend() ) ); } and finally main.cpp : #ifdef _WIN32 #define WINDOWS _LEAN_AND_MEAN #define NOMINMAX #include #endif #include #include #include #include #include //parallel patterns library #include "Hello.h" using namespace ::Concurrency; int main( int argc, char** argv ) { printf( "Generating data...\n" ); thrust::host_vector host_data( 100000 ); thrust::generate( host_data.begin(), host_data.end(), rand ); printf( "generated %d numbers\n", host_data.size() ); parallel_invoke( [host_data]() { printf( "\nRunning host code...\n" ); unsigned long host_result = thrust::reduce( host_data.cbegin(), host_data.cend(), 0, thrust::plus() ); printf( "The sum is %d\n", host_result ); host_result = *thrust::max_element( host_data.cbegin(), host_data.cend(), thrust::less() ); printf( "The max is %d\n", host_result ); }, [host_data]() { printf( "\nCopying data to device...\n" ); Hello hello( host_data ); printf( "\nRunning CUDA device code...\n" ); unsigned long device_result = hello.Sum(); printf( "The sum is %d\n", device_result ); printf( "\nRunning
5 Replies - 8374 Views - Last Post: 06 October 2009 - 09:11 PM Rate Topic: #1 yellow24 New D.I.C Head Reputation: 0 Posts: 23 Joined: 01-February 09 can't find header Posted 06 October 2009 - 07:58 PM ok the code i got was not written by me, it was found in a tutorial and i read through it all and tryed to make everything work. all the headers seem to work fine except for the cuda.h i do have this in my header files folder in my project yet the application gives me an error saying that it isnt test_project.cpp(5) : fatal error C1083: Cannot open include file: 'cuda.h': No such file or directory any help would be nice, this is just something i was testing to see if cuda would work on my machine and things arnt looking my way today. // example1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include // Kernel that executes on the CUDA device __global__ void square_array(float *a, int N) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if (idx>> (a_d, N); // Retrieve result from device and store it in host array cudaMemcpy(a_h, a_d, sizeof(float)*N, cudaMemcpyDeviceToHost);