Skip to content
  • Robert Maynard's avatar
    CUDA: Filter out host link flags during device linking · e768d96c
    Robert Maynard authored and Brad King's avatar Brad King committed
    Since commit v3.12.0-rc1~278^2 (CUDA: Pass more link libraries to device
    linking, 2018-03-27) we consider every link item during device linking.
    However, items that start in `-` may be host-specific link flags that
    nvcc will not understand during device linking.  Filter such items using
    a white list.
    
    In particular, this allows `-pthread` to be used for host linking while
    not polluting the device link line.
    
    Issue: #18008
    e768d96c