Friday, September 6, 2013

Define Home

Cambridge Dictionary says: "a property that you can buy or sell"

George Carlin says: "is just a place to keep your stuff while you go out and get more stuff"

some say home is where your family is

some say home is where your friends is

some say home is where your mom is

some say home is where your wife is

some say home is where the heart is

some say home is where you were born

some say home is where you feel safe

some say home is where your good memories are

some say home is where you can poop as long as you wish

I define it as: "something you think it's coming when you are young... and it's gone when you're old"

so, how you define home?

Sunday, May 12, 2013

Confused

I'm confused; really confused...

thinking about all the decisions I've made and creating scenarios that would never happen

annoying my self with things I wasted then I discovered they weren't meant to be mine

reconsidering the chances I missed and how that would have changed my life

my personality, my feelings, my thoughts are confusing me

is that what I wanted to be, or at least what I imagined myself to be?

is it better to have a regular routine or a messy crazy life?

am I seeking stability or enjoying my rocking chair?

what about the people who are in my life and they don't matter anymore?

what about the things I used to love and all of a sudden I don't care at all

I believe that I'm set on a path with some free choices

but anyway I will make these choices away from the conditions

Life can only be understood backward, it must be lived forward

Sunday, February 17, 2013

How to make a new CUDA project in VS 2012

this post is an update for How to make a new CUDA project in VS 2010 but this time for 2012

I'm using Windows 8 64-bit with Microsoft Visual Studio 2012, and Nvidia CUDA 5.0

first you must do these steps once:

1- copy files "CUDA 5.0.props, CUDA 5.0.targets, CUDA 5.0.xml, and Nvda.Build.CudaTasks.v5.0.dll" to:
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\BuildCustomizations

2- copy "host_config.h" and replace the one in:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\include

3- copy "usertype.dat" from:
C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\doc\syntax_highlighting\visual_studio_8
to:
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE

4- in Visual Studio 2012 IDE Select Tools menu -> Options -> Text Editor -> File Extension
type "cu" under Extension and select "Microsoft Visual C++" from Editor list and click Add

then these steps are for creating a new project:

1- create a New Project -> C++ Win32 Console Application -> Empty Project

2- mark the project in the Solution Explorer, then select Project menu -> Build Customizations -> CUDA 5.0 or whatever version you're using

3- right click the project in the Solution Explorer and select Properties

4- select VC++ Directories and add to Include Directories:
$(CUDA_INC_PATH)

5- select Linker -> General and add to Additional Library Directories:
$(CUDA_PATH)/lib/$(PlatformName)

6- select Linker -> Input and add to Additional Dependencies:
cudart.lib

7- now add your .cu file

hint: include 
#include "cuda.h"
#include "cuda_runtime.h"
#include "device_launch_parameters.h"
because Visual Studio will give you error for some CUDA keywords but will compile fine

your comments are welcomed

special thanks to Angga Reza Fardana for modifying the files and to Ade Miller too