cuCollections icon indicating copy to clipboard operation
cuCollections copied to clipboard

[FEA] Support linking multiple versions of cuco in the same project

Open sleeepyjack opened this issue 3 years ago • 1 comments

CUB and Thrust both allow for custom namespaces via e.g. CUB_NS_PREFIX and CUB_NS_POSTFIX, such that multiple shared libraries can each utilize their own copy of it (and thus different versions can safely coexist). (see NVIDIA/thrust#1401 )

cuco should also implement this feature.

sleeepyjack avatar Jul 19 '22 11:07 sleeepyjack

@allisonvacanti suggested to utilize versioned inline namespaces to solve this problem:

namespace cuco {
inline namespace CUCO_VERSION {
  void foo();
} /* inline namespace CUCO_VERSION */
} /* namespace cuco */

This option requires #190 to be implemented.

sleeepyjack avatar Jul 20 '22 12:07 sleeepyjack