Will CUDA work with FreeBSD?

Anyone know if the linux CUDA will run on FreeBSD 6.x?

1 Like

There are no current plans to ship a FreeBSD CUDA driver.

I would also like to see CUDA support FreeBSD. That is a very fast and powerful OS that doesnā€™t get nearly enough attention from hardware companies (the same goes for Solaris).

Maybe something can be done in the future, once the development team isnā€™t fighting to get the finalized Linux / WinXP drivers out the door?

1 Like

The best option would be cuda support out of box in all platform drivers. The unified driver architecture will help here.

1 Like

.

We are doing a lot of heavy computations also, and we also use FreeBSD. Without a doubt, if Nvidia were to release Cuda for FreeBSD, we would rush and buy the Tesla servers !

1 Like

Iā€™d also like to see Cuda toolkit/sdk/drivers for FreeBSD. FreeBSD is a nice platform, which you can adapt your own hardware setup to (without the need to ship the patches/modifications) and that makes it perfect for integrated solutions.

1 Like

Yes, I would like to see it running on FreeBSD as well. This is a fast and stable platform, and good for university, research, and heavy duty use as well.

1 Like

is BSD really faster than linux command line?

i thought that the advanced management system of linux would outperform BSD any momentā€¦

What about that?

I donā€™t speak Japanese (or at least I think thatā€™s Japanese), butā€¦ heā€™s chrooting to a stage 3 Gentoo install from BSD. Maybe it works, maybe it doesnā€™t, but if it breaks thereā€™s absolutely nothing we can do to help you. This is about as far away from supported as you can getā€¦

Is there any news about CUDA support on FreeBSD?

1 Like

+1 for a [free,open]BSD cuda (and driver) support.
External Image

1 Like

Can ANY ONE shoot this fish? PLEASE~

I am more interested in running FreeBSD out of the CUDA environment so I can turn the Core into an embedded peerā€¦

Todd

I too, would like to see a CUDA driver on FreeBSD.

1 Like

+1 for that! It would definitely be very useful if CUDA was available for FreeBSD

1 Like

The fact is: FreeBSD NVidia driver DOES support CUDA. Itā€™s libcudart we need to run CUDA properly on FreeBSD.

Iā€™ve compiled deviceQueryDrv from CUDA SDK on Debian Linux, then copied it to FreeBSD 7.2 with NVidia driver 190.42 (not in ports yet BTW, installed it myself), run and got the following:

uname -a

FreeBSD av429635.oops 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Sun May 10 15:32:51 MSD 2009 root@av429635.oops:/usr/src/sys/i386/compile/ALECN72 i386

env LD_LIBRARY_PATH=/compat/linux/lib:/lib:/usr/lib ./deviceQueryDrv

CUDA Device Query (Driver API) statically linked version

There is 1 device supporting CUDA

Device 0: ā€œGeForce 9400 GTā€

CUDA Driver Version: 2.30

CUDA Capability Major revision number: 1

CUDA Capability Minor revision number: 1

Total amount of global memory: 536150016 bytes

Number of multiprocessors: 2

Number of cores: 16

ā€¦blahblahā€¦

While, when Iā€™ve run deviceQuery (it uses CUDA runtime, as opposite for CUDA driver interface in deviceQueryDrv), Iā€™ve got:

env LD_LIBRARY_PATH=/compat/linux/lib:/lib:/usr/lib ./deviceQuery

CUDA Device Query (Runtime API) version (CUDART static linking)

There is no device supporting CUDA.

Device 0: ā€œDevice Emulation (CPU)ā€

ā€¦blahblahā€¦

So, you see: driver itself reports precense of CUDA device. And, if you will program using driver interface, you will get CUDA running under FreeBSD. Though, itā€™s too low-level interface.

So: we need CUDA runtime lib for FreeBSD!!!

1 Like

Maybe you can try with an example that uses the driver api? devicequery does not run a kernel at all, so you did not really have cuda ā€˜runningā€™ (yet)

Denis,

Good point.

Iā€™ve tried matrixMulDrv from CUDA SDK, and it failed:

env LD_LIBRARY_PATH=/compat/linux/lib:/compat/linux/usr/lib:/lib:/usr/lib:/usr/local/lib ./matrixMulDrv

Using device 0: GeForce 9400 GT

cuSafeCallNoSync() Driver API error = 0999 from file <matrixMulDrv.cpp>, line 72.

Line 72 of matrixMulDrv.cpp is:

[indent]cutilDrvSafeCallNoSync(initCUDA(argc, argv, &matrixMul ));[/indent]

Iā€™ve tracked it down and found, that device initialization itself passed OK.

Whatā€™ve failed was creating of Cuda context, precisely line 204 of matrixMulDrv.cpp:

[indent]CUresult status = cuCtxCreate( &cuContext, 0, cuDevice );[/indent]

Bad news :(

Also itā€™s bad that cuCtxCreate() returns code 999 means ā€œUnknown errorā€, and thereā€™s no sources for libcuda - so we canā€™t track it further in other way than debugging.

Maybe Iā€™ll fight my laziness and will do gdb tracking :)