tag:blogger.com,1999:blog-4965861307831207479.post2873542950073506156..comments2022-04-08T00:13:04.011-07:00Comments on That's so deep, dude: Speeding up libsvmalehttp://www.blogger.com/profile/13416824687254377240noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-4965861307831207479.post-45882945991421805162016-09-24T00:34:34.176-07:002016-09-24T00:34:34.176-07:00I have tried this library but it doesn't accel...I have tried this library but it doesn't accelerate the libsvmJimmyhttps://www.blogger.com/profile/10916469039559399595noreply@blogger.comtag:blogger.com,1999:blog-4965861307831207479.post-54314550127766607682015-02-27T10:24:05.584-08:002015-02-27T10:24:05.584-08:00please explain to me the whole working of grid.py ...please explain to me the whole working of grid.py i dont know phython so it is difficult to understand what i really happeningAnonymoushttps://www.blogger.com/profile/07180628769618327418noreply@blogger.comtag:blogger.com,1999:blog-4965861307831207479.post-3075339454178550202013-10-12T23:35:21.108-07:002013-10-12T23:35:21.108-07:00Sorry about the lateness of the reply.
You will o...Sorry about the lateness of the reply.<br /><br />You will only see a speedup during cross-validation since the speedup comes from doing all the cross-validation sets in parallel.<br /><br />Regarding memory, you should be ok as long as the number of elements in your training set stay below the square root of your GPU's RAM divided by 8 or so. This is because the CUDA versions uses a naive algorithm instead of SMO.<br /><br />Also note that they've released a new version of the code and moved it to github: https://github.com/MKLab-ITI/CUDA/ . alehttps://www.blogger.com/profile/13416824687254377240noreply@blogger.comtag:blogger.com,1999:blog-4965861307831207479.post-67275854235485351102013-07-04T09:43:59.587-07:002013-07-04T09:43:59.587-07:00Hi ale, I've recently just started to poke aro...Hi ale, I've recently just started to poke around the source code and see how everything is working out. And also im trying to compare running the gpu version svm-train to the non gpu one. I read that I have to set the cross validation in order for it to run as a GPU? Is that true? Also, once I tried to run the gpu with the 5 fold validation, it eats up my memory and it won't continue to run. Do you have any idea why this is? thanks! <br />summerhttps://www.blogger.com/profile/15801332247066883823noreply@blogger.comtag:blogger.com,1999:blog-4965861307831207479.post-72279269338658189132013-06-27T23:52:10.383-07:002013-06-27T23:52:10.383-07:00Good to hear that taking out -m32 worked.
grid.py...Good to hear that taking out -m32 worked.<br /><br />grid.py calls svm-train, so it speeds up that process too, and it is really in the grid.py case that this helps, since it calls svm-train to perform 5-fold cross-validation, and cross-validation is the main part that the GPU version speeds up. <br /><br />Make sure to set nr_local_worker = 1 in grid.py or you'll risk blowing up the memory of your GPU. Also, remember to set '-svmtrain [path-to-your-GPU-compiled-svm-train-binary]' in the command-line options to grid.py, or it will try to find an svm-train by itself, most likely finding a system one not GPU-compiled.alehttps://www.blogger.com/profile/13416824687254377240noreply@blogger.comtag:blogger.com,1999:blog-4965861307831207479.post-393338526111504812013-06-27T23:41:09.461-07:002013-06-27T23:41:09.461-07:00Hi ale, taking out the -m32 flag worked :) thanks!...Hi ale, taking out the -m32 flag worked :) thanks! yes, I am working on a 64 bit machine and i think that was the problem. I just have one question regarding your work. Is the speed up or the use of the GPU only in the svm-train file? or is there a way to speed up the grid.py tool as well? Because in my non GPU implementation, it is the grid.py which accounts for most of the time. Thanks for any insight that you can provide regarding this! summerhttps://www.blogger.com/profile/15801332247066883823noreply@blogger.comtag:blogger.com,1999:blog-4965861307831207479.post-78410430621084272972013-06-19T23:39:54.546-07:002013-06-19T23:39:54.546-07:00@summer I am not sure what exactly the issue is, b...@summer I am not sure what exactly the issue is, but my guess is that the issue is that you are running a 64-bit system and I hardcoded the compile to 32-bit. I would try getting rid of the '-m32' in the Makefile and trying again, although I have very low confidence in that working.<br /><br />Another option, one more likely to work, would be to install the 32-bit branch of glibc. Have a look at the answer in http://stackoverflow.com/questions/7412548/gnu-stubs-32-h-no-such-file-or-directory . It lists options for many distributions.<br />alehttps://www.blogger.com/profile/13416824687254377240noreply@blogger.comtag:blogger.com,1999:blog-4965861307831207479.post-53986866747155295462013-06-08T23:52:45.097-07:002013-06-08T23:52:45.097-07:00Hey ale, whenever I run the make file used here it...Hey ale, whenever I run the make file used here it gives me the following error: <br /><br />g++ -fPIC -W -Wall -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wmultichar -Wtrigraphs -Wpointer-arith -Wcast-align -Wreturn-type -Wno-unused-function -m32 -DUNIX -O2 -fno-strict-aliasing -c -o svm.o svm.cpp<br />In file included from /usr/include/features.h:385,<br /> from /usr/include/math.h:28,<br /> from svm.cpp:1:<br />/usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory<br />make: *** [svm.o] Error 1<br /><br />I'm not really familiar with developing projects yet with linux, so I hope you can help me out. Thanks a lot! <br /><br /><br />summerhttps://www.blogger.com/profile/15801332247066883823noreply@blogger.comtag:blogger.com,1999:blog-4965861307831207479.post-60403505218532838222013-05-26T20:02:22.619-07:002013-05-26T20:02:22.619-07:00Hi Summer
What error message do you get when you r...Hi Summer<br />What error message do you get when you run make on the one I posted?alehttps://www.blogger.com/profile/13416824687254377240noreply@blogger.comtag:blogger.com,1999:blog-4965861307831207479.post-9729851366717277582013-05-26T20:01:32.149-07:002013-05-26T20:01:32.149-07:00This comment has been removed by the author.alehttps://www.blogger.com/profile/13416824687254377240noreply@blogger.comtag:blogger.com,1999:blog-4965861307831207479.post-1175445653643684442013-05-23T04:50:55.269-07:002013-05-23T04:50:55.269-07:00Hi, I would just like to ask how you were able to ...Hi, I would just like to ask how you were able to compile the libsvmgpu project under linux. I tried using the make file included in the sample programs and also the one that you posted above but it wasn't able to successfully compile the project. can you help me out? thanks<br />summerhttps://www.blogger.com/profile/15801332247066883823noreply@blogger.com