Page MenuHomePhabricator

[Polly] [PPCGCodeGeneration] Allow PPCGCodeGeneration to run without libdevice.
Needs ReviewPublic

Authored by bollu on Aug 25 2017, 2:22 AM.

Details

Summary

We currently _always_ assume that we can have a valid libdevice if we
are using the NVPTX backend. This is the wrong assumption to make,
because it is possible that the end user does not wish to use libdevice.

If the CUDALibDevice string is empty, we do not try to use libdevice.

Event Timeline

bollu created this revision.Aug 25 2017, 2:22 AM
singam-sanjay added inline comments.Aug 27 2017, 7:08 AM
lib/CodeGen/PPCGCodeGeneration.cpp
113

Is it possible to initialize CUDALibDevice according to the OS ?

philip.pfaffe added inline comments.Oct 2 2017, 5:35 AM
lib/CodeGen/PPCGCodeGeneration.cpp
113

Can we at least configure this at compile-time?

bollu added inline comments.Nov 13 2017, 5:01 PM
lib/CodeGen/PPCGCodeGeneration.cpp
113

Not sure how you plan to do that?

philip.pfaffe added inline comments.Nov 14 2017, 2:56 AM
lib/CodeGen/PPCGCodeGeneration.cpp
113

Discover the file with cmake, and have it configurable through a cmake variable

jdoerfert resigned from this revision.Jun 4 2019, 10:03 PM