Adventures in SIMD Thinking (Part 1 of 2)
#undef __OPTIMIZE__ #define KEWB_FORCE_INLINE inline #endif namespace simd { using rf_512 = __m512; using ri_512 = __m512i; using msk_512 = uint32_t; ... }Copyright © 2020 Bob Steagall P U T I N G 4 CppCon 2020 - Adventures in SIMD Thinking Function load_value() KEWB_FORCE_INLINE rf_512 load_value(float fill) { return _mm512_set1_ps(v); } 2.3 2.3 2.3 2.3 2.3 2.3 2.3 2.3 2.3 2 M P U T I N G 6 CppCon 2020 - Adventures in SIMD Thinking Function load_from() KEWB_FORCE_INLINE rf_512 load_from(float const* psrc) { return _mm512_loadu_ps(psrc); } m0 m1 m2 m3 m4 m5 m6 m7 m8 m9 0 码力 | 88 页 | 824.07 KB | 5 月前3Changing Legacy Code: With Confidence
#endifDiscovery Testing proc_rf_msg(buff, true, false, 7); What does this function do? proc_rf_msg(uint8* buff, bool is_full, bool is_actvty, size_t sz);Discovery Testing void hndl_new_pkt(rf_pkt* pkt, size_t size) ... proc_rf_msg(buff, true, false, 7); proc_rf_msg(nullptr, false, false, 0); activity activity; activity.start_loc = {32.2226, 110.9747}; activity.end_loc = {39.8175, 104.7509}; proc_rf_msg(&activity proc_rf_msg(&activity, true, true, sizeof(activity)}; ... } void proc_rf_msg(void* buf, bool is_verified, bool is_activity, size_t buf_size) { ... if(is_activity) { activity* activ = (activity)buf; int activity_distance0 码力 | 114 页 | 982.54 KB | 5 月前3Conda 4.6.0 Documentation
Miniconda 1. Open a Terminal window. 2. Remove the entire Miniconda install directory with: rm -rf ~/miniconda 3. You may also: 4. OPTIONAL: Edit ~/.bash_profile to remove the Miniconda directory the home directory: • .condarc file • .conda directory • .continuum directory By running: rm -rf ~/.condarc ~/.conda ~/.continuum Installing on Linux 1. Download the installer: • Miniconda installer Miniconda 1. Open a Terminal window. 2. Remove the entire miniconda install directory with: rm -rf ~/miniconda 3. OPTIONAL: Edit ~/.bash_profile to remove the Miniconda directory from your PATH environment0 码力 | 190 页 | 728.67 KB | 7 月前3Conda 4.6.1 Documentation
Miniconda 1. Open a Terminal window. 2. Remove the entire Miniconda install directory with: rm -rf ~/miniconda 3. You may also: 4. OPTIONAL: Edit ~/.bash_profile to remove the Miniconda directory the home directory: • .condarc file • .conda directory • .continuum directory By running: rm -rf ~/.condarc ~/.conda ~/.continuum Installing on Linux 1. Download the installer: • Miniconda installer Miniconda 1. Open a Terminal window. 2. Remove the entire miniconda install directory with: rm -rf ~/miniconda 3. OPTIONAL: Edit ~/.bash_profile to remove the Miniconda directory from your PATH environment0 码力 | 190 页 | 728.57 KB | 7 月前3Adventures in SIMD Thinking (Part 2 of 2)
KernelSize - KernelCenter - 1; rf_512 prev; //- Bottom of the input data window rf_512 curr; //- Middle of the input data windows rf_512 next; //- Top of the input data window rf_512 lo; //- Primary work work data register, used to multiply kernel coefficients rf_512 hi; //- Upper work data register, supplies values to the top of 'lo' rf_512 sum; //- Accumulated value ...Copyright © 2020 Bob Steagall KernelCenter> void avx_convolve(float* pdst, float const* pkrnl, float const* psrc, size_t len) { ... rf_512 kcoeff[KernelSize]; //- Coefficients of the convolution kernel //- Broadcast each kernel coefficient0 码力 | 135 页 | 551.08 KB | 5 月前3Conda 23.3.x Documentation
Miniconda 1. Open a terminal window. 2. Remove the entire Miniconda install directory with: rm -rf ~/miniconda 3. OPTIONAL: Edit ~/.bash_profile to remove the Miniconda directory from your PATH environment the home directory: • .condarc file • .conda directory • .continuum directory By running: rm -rf ~/.condarc ~/.conda ~/.continuum Installing on Linux 1. Download the installer: • Miniconda installer Miniconda 1. Open a terminal window. 2. Remove the entire Miniconda install directory with: rm -rf ~/miniconda 3. OPTIONAL: Edit ~/.bash_profile to remove the Miniconda directory from your PATH environment0 码力 | 370 页 | 2.94 MB | 7 月前3Conda 23.5.x Documentation
Miniconda 1. Open a terminal window. 2. Remove the entire Miniconda install directory with: rm -rf ~/miniconda 3. OPTIONAL: Edit ~/.bash_profile to remove the Miniconda directory from your PATH environment the home directory: • .condarc file • .conda directory • .continuum directory By running: rm -rf ~/.condarc ~/.conda ~/.continuum Installing on Linux 1. Download the installer: • Miniconda installer Miniconda 1. Open a terminal window. 2. Remove the entire Miniconda install directory with: rm -rf ~/miniconda 3. OPTIONAL: Edit ~/.bash_profile to remove the Miniconda directory from your PATH environment0 码力 | 370 页 | 3.11 MB | 7 月前3Conda 25.1.x Documentation
entire Miniconda install directory with (this may differ depending on your installation location) rm -rf ~/miniconda 3. Optional: run conda init --reverse --all to undo changes to shell initialization scripts the home directory: • .condarc file • .conda directory • .continuum directory By running: rm -rf ~/.condarc ~/.conda ~/.continuum Installing on Linux 1. Download the installer: • Miniconda installer entire conda install directory with (this may differ depending on your installation location) rm -rf ~/conda 3. Optional: run conda init --reverse --all to undo changes to shell initialization scripts0 码力 | 822 页 | 5.20 MB | 7 月前3Conda 24.11.x Documentation
entire Miniconda install directory with (this may differ depending on your installation location) rm -rf ~/miniconda 3. Optional: run conda init --reverse --all to undo changes to shell initialization scripts the home directory: • .condarc file • .conda directory • .continuum directory By running: rm -rf ~/.condarc ~/.conda ~/.continuum Installing on Linux 1. Download the installer: • Miniconda installer entire conda install directory with (this may differ depending on your installation location) rm -rf ~/conda 3. Optional: run conda init --reverse --all to undo changes to shell initialization scripts0 码力 | 818 页 | 5.21 MB | 7 月前3Conda 24.9.x Documentation
entire Miniconda install directory with (this may differ depending on your installation location) rm -rf ~/miniconda 3. Optional: run conda init --reverse --all to undo changes to shell initialization scripts the home directory: • .condarc file • .conda directory • .continuum directory By running: rm -rf ~/.condarc ~/.conda ~/.continuum Installing on Linux 1. Download the installer: • Miniconda installer entire conda install directory with (this may differ depending on your installation location) rm -rf ~/conda 3. Optional: run conda init --reverse --all to undo changes to shell initialization scripts0 码力 | 799 页 | 5.26 MB | 7 月前3
共 74 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8