3 ms·
Feature detection should be a goal for the function container, exploiting the resources given a particular environment. If AVX2 exists, use it; if CUDA does, u
by mycall 10y ago
Feature detection should be a goal for the function container, exploiting the resources given a particular environment. If AVX2 exists, use it; if CUDA does, use that; if both, use both. Why limit the implementation?
- jandrewrogers 10y agoTwo reasons. First, functions may need to cross system boundaries while producing identical results. Second, it simplifies the implementation and reduces the potential defect surface in the function design.