About 4,960,000 results
Open links in new tab
  1. c++ - tree vectorization: gcc optimization flag - Stack Overflow

    Mar 10, 2016 · I have noticed that the gcc flag -ftree-vectorize is very useful for optimizing code. I am trying to understand better how it works, but the doc is fairly concise: Perform vectorization …

  2. Using Numpy Vectorize on Functions that Return Vectors

    The purpose of np.vectorize is to transform functions which are not numpy-aware (e.g. take floats as input and return floats as output) into functions that can operate on (and return) numpy arrays.

  3. simd - What is "vectorization"? - Stack Overflow

    Sep 14, 2009 · Many CPUs have "vector" or "SIMD" instruction sets which apply the same operation simultaneously to two, four, or more pieces of data. Modern x86 chips have the SSE …

  4. python - How to use np.vectorize? - Stack Overflow

    Feb 13, 2021 · Isn't the answer to How to use np.vectorize? usually "Don't. It just pretends to be a vectorized function but is just a loop with a different name"?

  5. How can I disable vectorization while using GCC?

    Oct 15, 2011 · I am compiling my code using following command: gcc -O3 -ftree-vectorizer-verbose=6 -msse4.1 -ffast-math With this all the optimizations are enabled. But I want to …

  6. How to vectorize with gcc? - Stack Overflow

    Apr 4, 2020 · The v4 series of the gcc compiler can automatically vectorize loops using the SIMD processor on some modern CPUs, such as the AMD Athlon or Intel Pentium/Core chips. How …

  7. How to define a vectorized function in R - Stack Overflow

    Sep 13, 2017 · As the title, I'd like to know how to define a vectorized function in R. Is it just by using a loop in the function? Is this method efficient? And what's the best practice ?

  8. c++ - How to disable vectorization in clang++? - Stack Overflow

    Jul 22, 2018 · Does that have different effects than -fno-slp-vectorize / -fno-three-vectorize or just -fno-vectorize? e.g. does it also affect memcpy inlining, or struct initialization?

  9. gcc - -ftree-vectorize option in GNU - Stack Overflow

    Nov 6, 2015 · With the GCC compiler, the -ftree-vectorize option turns on auto-vectorization, and this flag is automatically set when using -O3. To what level does it vectorize?

  10. How to do text vectorization in Torch as a model layer

    Aug 4, 2022 · Is there a way to get a Torch model to do text-vectorization? In Torch, I can't find a way to do the vectorization inside the model. Every example I have found applies the …