3 ms·
Ok, is there any way to trim down the amount of code used without reducing the performance of my particular application, and my particular machine? I have the
by amelius 4y ago
Ok, is there any way to trim down the amount of code used without reducing the performance of my particular application, and my particular machine?
I have the feeling that it's an all-or-nothing proposition. Either you have a simple CPU-only algorithm, or you have several gigabytes of libraries you don't really need.
Also, in some applications I would be willing to give up 10% of performance if I could reclaim 90% of space.
- modeless 4y agoCuDNN is only for Nvidia GPUs, and those machines generally have decent sized disks and decent network connections so no nobody cares about a few GBs of libraries. There are alternatives to using CuDNN with much smaller binary size. Maybe they can match or beat it or maybe not, depending on your model and hardware. But you'll have to do your own work to switch to them, since most people are happy enough with CuDNN for now. The real problem with deep learning on Nvidia is the Linux driver situation. Ugh. Hopefully one day they will come to their senses.
- amelius 4y agoIt's not just disk size. Also memory size, and loading speed. Yes, I agree about the driver situation.
- modeless 4y agoThe disk size of the shared library is not indicative of RAM usage or loading speed. Shared libraries are memory mapped with demand paging. Only the actually used parts of the library will be loaded into RAM.