Exercise 1 issues

Moderator: Programming Massively Parallel Processors

Exercise 1 issues

Beitragvon Jonnylein » 7. Mai 2010 11:20

As it seems I am either too confused to locate them (but that seems unlikely) or somebody forgot to place the makefiles which we were to use in my account. Can somebody send them to me via e-mail or other means of electronic transfer?

Yours truly,
Jonnylein
Hier entsteht in Kürze die coolste Signatur der Welt.
Jonnylein
Neuling
Neuling
 
Beiträge: 10
Registriert: 24. Okt 2007 15:10
Wohnort: Mörfelden-Walldorf

Re: Exercise 1 issues

Beitragvon swidmer » 7. Mai 2010 11:53

Hi,

The exercise is meant to get you started setting up a cuda project. Therefor writing
a makefile is your task aswell. You can use the sample file from the template project,
copy the template makefile and adopt the paths. For that some variables need to be
redefinied. For further infos please look at the common.mk.
swidmer
Moderator
 
Beiträge: 1
Registriert: 29. Mär 2010 09:38

Re: Exercise 1 issues

Beitragvon CarstenHaubold » 7. Mai 2010 18:34

As a lot of people in the linux pool have problems with setting up the makefiles, here are some hints:
  • copy the makefile of one of the projects in the CUDA SDK (if you copied the CUDA SDK template app then you have it anyway)
  • use an absolute path to include the CUDA SDK's common.mk
  • overwrite the variables ROOTDIR, SRCDIR and BINDIR
  • be careful when setting the ROOTDIR, as in common.mk the include and library paths are set to $ROOTDIR/../lib
Benutzeravatar
CarstenHaubold
Windoof-User
Windoof-User
 
Beiträge: 34
Registriert: 11. Feb 2008 11:50

Re: Exercise 1 issues

Beitragvon Jonnylein » 8. Mai 2010 21:32

swidmer hat geschrieben:Hi,

The exercise is meant to get you started setting up a cuda project. Therefor writing
a makefile is your task aswell. You can use the sample file from the template project,
copy the template makefile and adopt the paths. For that some variables need to be
redefinied. For further infos please look at the common.mk.


Thanks for the remark, but I suppose I missed the point in my previous post; my problem is: the folder which is meant to contain the template project, which I hoped to use for the exercise, did not exist when I last checked my account. Given the late date I'll solve the exercise without those files (hopefully, at least).

Yours truly,
Jonnylein
Hier entsteht in Kürze die coolste Signatur der Welt.
Jonnylein
Neuling
Neuling
 
Beiträge: 10
Registriert: 24. Okt 2007 15:10
Wohnort: Mörfelden-Walldorf


Zurück zu Programming Massively Parallel Processors

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast