• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..17-Aug-2021-

README.mdH A D17-Aug-20211.6 KiB4217

cpu.goH A D17-Aug-20212.3 KiB7852

cpu_x86.goH A D17-Aug-20212.2 KiB10880

cpu_x86.sH A D17-Aug-2021689 3321

README.md

1<!---
2  Licensed to the Apache Software Foundation (ASF) under one
3  or more contributor license agreements.  See the NOTICE file
4  distributed with this work for additional information
5  regarding copyright ownership.  The ASF licenses this file
6  to you under the Apache License, Version 2.0 (the
7  "License"); you may not use this file except in compliance
8  with the License.  You may obtain a copy of the License at
9
10    http://www.apache.org/licenses/LICENSE-2.0
11
12  Unless required by applicable law or agreed to in writing,
13  software distributed under the License is distributed on an
14  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  KIND, either express or implied.  See the License for the
16  specific language governing permissions and limitations
17  under the License.
18-->
19
20# Package cpu
21
22Copied from Go src/internal/cpu
23
24## Extras
25
26### Intel
27
28The `INTEL_DISABLE_EXT` environment variable can control which CPU extensions are available for
29the running process. It should be a comma-separate list of upper-case strings as follows
30
31|   Flag   | Description |
32| -------- | ----------- |
33| `ALL`    | Disable all CPU extensions and fall back to Go implementation |
34| `AVX2`   | Disable AVX2 optimizations |
35| `AVX`    | Disable AVX optimizations |
36| `SSE`    | Disable all SSE optimizations |
37| `SSE4`   | Disable SSE42, SSE41 optimizations |
38| `SSSE3`  | Disable supplemental SSE3 optimizations |
39| `SSE3`   | Disable SSE3 optimizations |
40| `SSE2`   | Disable SSE2 optimizations |
41
42Any unrecognized flags will be ignored and therefore it is possible to leave the environment variable with a bogus value such as `NONE` when experimenting.