This is more feature request related to CUDA GPU acceleration support in packages. Problem is that usually the packages compile its CUDA code into multiple architectures, here example from opencv-3.2.0: -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 But I have for example architecture 52, so only interested in this specific compilation. The easy idea is to provide custom USE flag per architecture in similar way as single target for python: cuda_single_target_50 cuda_single_target_30 etc. What do you think about it? I opened discussion about this here: https://forums.gentoo.org/viewtopic-t-1063800.html Thank you for looking into this. Ladislav
Probably OpenCV was also nice example as their CMAKE upstream configuration includes special CUDA config generator, so I raised the question with them as well: https://github.com/opencv/opencv/issues/8781
I think we should propose something like CUDA_GENERATION variable to be configured in /etc/make.conf where we can list system wide GPU chip type.
It'd be a USE_EXPAND I guess.