Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add cl-cuda #514

Closed
takagi opened this issue Jun 8, 2013 · 21 comments
Closed

Please add cl-cuda #514

takagi opened this issue Jun 8, 2013 · 21 comments
Labels

Comments

@takagi
Copy link

takagi commented Jun 8, 2013

Cl-cuda is a library to use NVIDIA CUDA in Common Lisp programs.

https://github.com/takagi/cl-cuda

It depends on NVIDIA CUDA which is, you know, a parallel computing platform using GPUs.

@quicklisp
Copy link
Owner

Unfortunately, I don't have a system on which I can test this library. In addition, I'm reluctant to add projects that work only on a single implementation.

@takagi
Copy link
Author

takagi commented Jun 11, 2013

Unfortunately, I don't have a system on which I can test this library.

I guess that cl-gpu which is already included in quicklisp also needs CUDA enabled GPU as cl-cuda. Why is cl-gpu accepted?

In addition, I'm reluctant to add projects that work only on a single implementation.

Ok, I will make cl-cuda work on various implementations. The implementation-dependent thing is only a point executing a external program.

Thanks.

@quicklisp
Copy link
Owner

The cuda portion of cl-gpu is omitted. There are other systems in cl-gpu that do not require cuda.

@takagi takagi closed this as completed Jun 11, 2013
@takagi takagi reopened this Jun 11, 2013
@takagi
Copy link
Author

takagi commented Jun 12, 2013

I see. Then, if I would provide you a kind of CUDA environment, for example a CUDA enabled graphics card, could you accept cl-cuda?

@quicklisp
Copy link
Owner

I don't have a good way to merge that kind of info yet. I'll try to make it work better soon.

@takagi
Copy link
Author

takagi commented Jun 15, 2013

Ok. Please let me know after you will make it work!

@takagi
Copy link
Author

takagi commented Dec 26, 2014

Sorry for bothering you again. I want to ask you to add cl-cuda once more because I found this IRC log and guess you think a physical board is required for just building it.

http://ircbrowse.net/browse/lisp?events_page=244537

For just building cl-cuda, only CUDA SDK is required to be installed and no physical board or built-in GPU chip is needed. CUDA SDK can be downloaded from NVIDIA's website and is provided for Windows, Mac OSX and Linux.

Following shows a relation of some library operations and CUDA specific stuffs.

Ops. CUDA SDK a physical board
build required not
test required required
run required required

Here, build is (:ql :cl-cuda) and test is (:ql :cl-cuda-test). Run is a process of defining a kernel function, creating a CUDA context then launching the kernel function in the context. Since test, :cl-cuda-test, also includes this process, it requires a physical board.

Isn't it enough for accepting cl-cuda?

If not enough and requiring CUDA SDK on build is the problem, I can make cl-cuda not requiring it and compiled without any conditions raised on build, although I don't know it makes sense because this is almost the same case as any other CL systems that depend on other non-CL libraries, especially language bindings.

On the other hand, if the problem is requiring a physical board on test, :cl-cuda-test, I will think about another solution. For example I would host testing environment for myself and report its result to quicklisp, if possible.

Now, Common Lisp libraries not listed on Quicklisp is almost same as it does not exist. And cl-cuda's users strongly hope it accepted on Quicklisp.

@quicklisp
Copy link
Owner

Sorry for the delay.

I tried to get the SDK some time ago, but it did not run on my Debian system. I don't remember the reason. I will try to get it again and see if that helps me build cl-cuda.

@quicklisp
Copy link
Owner

I tried again. The deb approach seems to require a newer libc than Debian 7 provides.

Do you know how I can get it installed on Debian 7?

@takagi
Copy link
Author

takagi commented Dec 26, 2014

What is your gcc's version?

@quicklisp
Copy link
Owner

$ gcc --version
gcc (Debian 4.7.2-5) 4.7.2

@takagi
Copy link
Author

takagi commented Dec 26, 2014

gcc 4.6 might help you.

# apt-get install g++-4.6
# update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 46 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6
# update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 47 --slave /usr/bin/g++ g++ /usr/bin/g++-4.7
# update-alternatives --config gcc

@takagi
Copy link
Author

takagi commented Dec 26, 2014

If not, I will also research about it.

@melisgl
Copy link

melisgl commented Dec 26, 2014

On debian testing (what will become debian 8) I simply install nvidia-cuda-toolkit.

@quicklisp
Copy link
Owner

@melisgl When I try that on testing, I get:

Package nvidia-cuda-toolkit is not available, but is referred to by another package.

Did I do something wrong?

@melisgl
Copy link

melisgl commented Dec 29, 2014

@quicklisp I think you need to add the non-free section to apt sources so it looks like this:

deb http://ftp.fi.debian.org/debian/ testing main non-free contrib

@quicklisp
Copy link
Owner

Thanks! I have made some progress.

@takagi Can you please add the :author, :license, and :description options to the systems of cl-cuda?

@takagi
Copy link
Author

takagi commented Dec 31, 2014

@quicklisp Yes. I will add the sections in a few days.

@takagi
Copy link
Author

takagi commented Jan 3, 2015

@quicklisp Now the systems of cl-cuda, cl-cuda and cl-cuda-interop, have :author, :license and :description options.

@mpsota
Copy link

mpsota commented Sep 21, 2016

@quicklisp Any progress on this ticket? I can confirm that one can build cl-cuda without CUDA enabled graphics card. All I needed under ubuntu is nvidia-cuda-toolkit.

@quicklisp
Copy link
Owner

Cool, it works now, and will be in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants