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 月前3How Deep Do You Go?
aware of the -Rf flags, that force the recursive removal of an entire directory. Our first solution was to use this tool. The command function, which does the shelling out, runs rm -rf as if we were could have been the end of this talk. But it wasn’t. How many of you think that shelling out to rm -rf was a good solution? How many not? The Problem With the Solution? • Shelling out to a binary can Removeat(directory, path) } v_7b8mqs45lgch7rf49sdm240000gn/T/989178669/eeeeeeee/ooo /var/folders/bq/ } Removeat(directory, path) } v_7b8mqs45lgch7rf49sdm240000gn/T/989178669/eeeeeeee/ /var/folders/bq/0 码力 | 70 页 | 14.56 MB | 1 年前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 月前3PyArmor Documentation v8.1.9
uninstall pyarmor $ pip uninstall pyarmor.cli.core $ pip uninstall pyarmor.cli.runtime $ rm -rf ~/.pyarmor $ rm -rf ./.pyarmor Note The path ~ may be different when logging by different user. $HOME is home __pycache__ 3. Run function "foo", an obfuscated class is called 10,000 times Here are test steps: $ rm -rf dist __pycache__ $ cp benchmark.py benchmark2.py $ python testben.py Python 3.7 test_import : obfuscate scritps with RFT mode, and run it again: $ rm -rf dist $ pyarmor gen testben.py benchmark.py benchmark2.py $ python dist/testben.py $ rm -rf dist $ pyarmor gen --enable-rft testben.py benchmark0 码力 | 131 页 | 111.00 KB | 1 年前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 月前3
共 394 条
- 1
- 2
- 3
- 4
- 5
- 6
- 40