environment variables

Support for issues specific to the Linux operating systems.

environment variables

Postby dandan » Tue Jun 14, 2011 10:13 am

Hi all,

I use CULA R10 on a Linux machine. When I try to compile examples, it complains about "CULA_BIN_PATH_64" which I don't know what path should give to this variable? There is no "bin" nor "bin64" folder in my installation path. The directories in CULA's installation path are:

doc
examples
include
interfaces
lib
lib64

Thanks,

D.
dandan
 
Posts: 16
Joined: Sat Feb 26, 2011 7:30 am

Re: environment variables

Postby dan » Tue Jun 14, 2011 10:40 am

dandan,

In our documentation and in the installer we have typically recommend setting CULA_BIN_PATH_32 and CULA_BIN_PATH_64 to /usr/local/cula/bin and /usr/local/cula/bin64 respectively despite the fact that these directories do not exist. Setting these variables should quiet the warning you are seeing.

dan
dan
Administrator
 
Posts: 61
Joined: Thu Jul 23, 2009 2:29 pm

Re: environment variables

Postby dandan » Tue Jun 14, 2011 1:21 pm

Thank you very much. I will try this.

Dan
dandan
 
Posts: 16
Joined: Sat Feb 26, 2011 7:30 am

Re: environment variables

Postby dandan » Wed Jun 15, 2011 4:34 am

Hi,

The problem still exists. When I try to compile the example file "geqrf_device" in "cula/examples/device/", I get following errors:

> make build64
sh ../checkenvironment.sh
gcc -m64 -o geqrf_device geqrf_device.c -DNDEBUG -O3 -I/platon/nobackup/users/dan57/cula/include/ -I -L/platon/nobackup/users/dan57/cula/lib64/ -lcula -lcublas -lcudart
geqrf_device.c:67:26: error: cuda_runtime.h: No such file or directory
geqrf_device.c:88: error: expected ‘)’ before ‘err’
geqrf_device.c: In function ‘main’:
geqrf_device.c:109: error: ‘cudaError_t’ undeclared (first use in this function)
geqrf_device.c:109: error: (Each undeclared identifier is reported only once
geqrf_device.c:109: error: for each function it appears in.)
geqrf_device.c:109: error: expected ‘;’ before ‘err’
geqrf_device.c:126: error: ‘err’ undeclared (first use in this function)
geqrf_device.c:137: error: ‘cudaMemcpyHostToDevice’ undeclared (first use in this function)
geqrf_device.c:144: error: ‘cudaMemcpyDeviceToHost’ undeclared (first use in this function)
make: *** [build64] Error 1
dandan
 
Posts: 16
Joined: Sat Feb 26, 2011 7:30 am

Re: environment variables

Postby kyle » Wed Jun 15, 2011 5:43 am

You need to add the CUDA install header location if you are going to use the device interface.
kyle
Administrator
 
Posts: 301
Joined: Fri Jun 12, 2009 7:47 pm


Return to Linux Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron