How to set the program environment in VS2008 for ArrayFire

[Old posts from the commercial version of ArrayFire] Issues and comments for download and installation. Getting up and running.

Moderators: melonakos, pavanky

How to set the program environment in VS2008 for ArrayFire

Postby violinzju » Wed Feb 27, 2013 12:28 pm

Dear all
I installed ArrayFire and VS2008, but I can't run the helloworld
I think I need set the environment first in VS2008.
Can you give more detailed tips for that?
I think the website below is not sufficient.

Thanks
http://www.accelereyes.com/arrayfire/c/page_started.htm
violinzju
 
Posts: 34
Joined: Wed Feb 27, 2013 12:25 pm

Re: How to set the program environment in VS2008 for ArrayFi

Postby mlandes » Thu Mar 21, 2013 12:13 pm

There have been recent changes in the required environment variables to access the CUDA libraries. These have been fixed in our nightly builds, so it should no longer be a problem.
The Cuda installer has replaced the following path variables as follows:
CUDA_LIB_PATH => CUDA_PATH\lib\{Win32|x64}
CUDA_INC_PATH => CUDA_PATH\include
CUDA_BIN_PATH => CUDA_PATH\bin

You can make these changes in Visual Studio by right-clicking on the project, and opening the properties menu. Under "C/C++" you can edit the "Additional Include Directories" and fix the include path accordingly. Then under "Linker" you can edit the "Additional Library Directories" to fix the lib path accordingly. The new include path should be "$(CUDA_PATH)\include" and the new lib path should be "$(CUDA_PATH)\lib\$(PlatformName)"

The website will soon reflect these changes as well.
User avatar
mlandes
 
Posts: 2
Joined: Wed Mar 20, 2013 3:33 pm


Return to [archive-commercial] Download & Installation

cron