OpenROAD icon indicating copy to clipboard operation
OpenROAD copied to clipboard

OpenROAD GPU Compile

Open monibahmed opened this issue 2 years ago • 5 comments

Hi,

Is there a recommended way to compile for GPU? CMake doesn't seem to find the correct libraries/executables

Commands Used sudo ./etc/DependencyInstaller.sh -runtime;
sudo ./etc/DependencyInstaller.sh -development;
./etc/Build.sh `-cmake="-DGPU=true

Output

CMake Error: Error required internal CMake variable not set, cmake may not be built correctly.
Missing variable is:
CMAKE_CUDA_DEVICE_LINK_EXECUTABLE

I've tried following this: https://cliutils.gitlab.io/modern-cmake/chapters/packages/CUDA.html

But more issues pop up.

Thanks!

monibahmed avatar Aug 23 '22 04:08 monibahmed

The GPU code is quite new and probably not worth the bother at this point. If you want to persist then you need to install CUDA on your machine which is not handled through the dependency installer.

maliberty avatar Aug 23 '22 04:08 maliberty

You can install cuda from Nvidia's website. https://developer.nvidia.com/cuda-downloads

QuantamHD avatar Aug 23 '22 04:08 QuantamHD

@monibahmed Any luck getting it to work? Would love to have another user of this feature.

QuantamHD avatar Aug 24 '22 20:08 QuantamHD

Yes, some luck install but its a manual hacking process. Trying to figure out some cmake flags

monibahmed avatar Sep 02 '22 18:09 monibahmed

If there is anything not working it would be great to try and get those fixes in the main project.

QuantamHD avatar Sep 02 '22 18:09 QuantamHD

@monibahmed Have you implemented this?

vijayank88 avatar Jun 19 '23 11:06 vijayank88

Closing issue as OpenLane2 and Nix seem to solve this problem

monibahmed avatar Mar 08 '24 04:03 monibahmed