JonChesterfield added a comment.

An alternative approach is to build the deviceRTL for multiple cuda versions 
and then pick whichever one is the best fit when compiling application code. 
That has advantages when building the deviceRTL libraries on a different 
machine to the one that intends to use it.

Cmake isn't my thing, but I see that my trunk build only has 
libomptarget-nvptx-sm_35.bc when the local card is a sm_50. The downstream amd 
toolchain builds lots of this library, my install dir has fifteen of them 
(including sm_50).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D88929/new/

https://reviews.llvm.org/D88929

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to