[HIP] Instruct lld to go through all archives
Add the --whole-archive flag when linking HIP programs to instruct lld to go through every archive library to link in all the kernel functions (entry pointers to the GPU program); otherwise, lld may skip some library files if there are no more symbols that need to be resolved. Differential Revision: https://reviews.llvm.org/D152207 Change-Id: I084d3d606f9cee646f9adc65f4b648c9bcb252e6
Loading
Please sign in to comment