minimap2 0.2.25.1 → 0.2.26.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/ext/Rakefile +2 -2
- data/ext/minimap2/NEWS.md +9 -0
- data/ext/minimap2/README.md +2 -2
- data/ext/minimap2/cookbook.md +2 -2
- data/ext/minimap2/minimap.h +1 -1
- data/ext/minimap2/minimap2.1 +1 -1
- data/ext/minimap2/misc/paftools.js +1 -1
- data/ext/minimap2/python/mappy.pyx +1 -1
- data/ext/minimap2/setup.py +22 -32
- data/lib/minimap2/version.rb +1 -1
- metadata +1 -97
- data/ext/minimap2/lib/simde/CONTRIBUTING.md +0 -114
- data/ext/minimap2/lib/simde/COPYING +0 -20
- data/ext/minimap2/lib/simde/README.md +0 -333
- data/ext/minimap2/lib/simde/amalgamate.py +0 -58
- data/ext/minimap2/lib/simde/meson.build +0 -33
- data/ext/minimap2/lib/simde/netlify.toml +0 -20
- data/ext/minimap2/lib/simde/simde/arm/neon/float32x2.h +0 -140
- data/ext/minimap2/lib/simde/simde/arm/neon/float32x4.h +0 -137
- data/ext/minimap2/lib/simde/simde/arm/neon/float64x1.h +0 -142
- data/ext/minimap2/lib/simde/simde/arm/neon/float64x2.h +0 -145
- data/ext/minimap2/lib/simde/simde/arm/neon/int16x4.h +0 -140
- data/ext/minimap2/lib/simde/simde/arm/neon/int16x8.h +0 -145
- data/ext/minimap2/lib/simde/simde/arm/neon/int32x2.h +0 -140
- data/ext/minimap2/lib/simde/simde/arm/neon/int32x4.h +0 -143
- data/ext/minimap2/lib/simde/simde/arm/neon/int64x1.h +0 -137
- data/ext/minimap2/lib/simde/simde/arm/neon/int64x2.h +0 -141
- data/ext/minimap2/lib/simde/simde/arm/neon/int8x16.h +0 -147
- data/ext/minimap2/lib/simde/simde/arm/neon/int8x8.h +0 -141
- data/ext/minimap2/lib/simde/simde/arm/neon/uint16x4.h +0 -134
- data/ext/minimap2/lib/simde/simde/arm/neon/uint16x8.h +0 -138
- data/ext/minimap2/lib/simde/simde/arm/neon/uint32x2.h +0 -134
- data/ext/minimap2/lib/simde/simde/arm/neon/uint32x4.h +0 -137
- data/ext/minimap2/lib/simde/simde/arm/neon/uint64x1.h +0 -131
- data/ext/minimap2/lib/simde/simde/arm/neon/uint64x2.h +0 -135
- data/ext/minimap2/lib/simde/simde/arm/neon/uint8x16.h +0 -141
- data/ext/minimap2/lib/simde/simde/arm/neon/uint8x8.h +0 -135
- data/ext/minimap2/lib/simde/simde/arm/neon.h +0 -97
- data/ext/minimap2/lib/simde/simde/check.h +0 -267
- data/ext/minimap2/lib/simde/simde/debug-trap.h +0 -83
- data/ext/minimap2/lib/simde/simde/hedley.h +0 -1899
- data/ext/minimap2/lib/simde/simde/simde-arch.h +0 -445
- data/ext/minimap2/lib/simde/simde/simde-common.h +0 -697
- data/ext/minimap2/lib/simde/simde/x86/avx.h +0 -5385
- data/ext/minimap2/lib/simde/simde/x86/avx2.h +0 -2402
- data/ext/minimap2/lib/simde/simde/x86/avx512bw.h +0 -391
- data/ext/minimap2/lib/simde/simde/x86/avx512f.h +0 -3389
- data/ext/minimap2/lib/simde/simde/x86/avx512vl.h +0 -112
- data/ext/minimap2/lib/simde/simde/x86/fma.h +0 -659
- data/ext/minimap2/lib/simde/simde/x86/mmx.h +0 -2210
- data/ext/minimap2/lib/simde/simde/x86/sse.h +0 -3696
- data/ext/minimap2/lib/simde/simde/x86/sse2.h +0 -5991
- data/ext/minimap2/lib/simde/simde/x86/sse3.h +0 -343
- data/ext/minimap2/lib/simde/simde/x86/sse4.1.h +0 -1783
- data/ext/minimap2/lib/simde/simde/x86/sse4.2.h +0 -105
- data/ext/minimap2/lib/simde/simde/x86/ssse3.h +0 -1053
- data/ext/minimap2/lib/simde/simde/x86/svml.h +0 -543
- data/ext/minimap2/lib/simde/test/CMakeLists.txt +0 -166
- data/ext/minimap2/lib/simde/test/arm/meson.build +0 -4
- data/ext/minimap2/lib/simde/test/arm/neon/meson.build +0 -23
- data/ext/minimap2/lib/simde/test/arm/neon/skel.c +0 -871
- data/ext/minimap2/lib/simde/test/arm/neon/test-neon-internal.h +0 -134
- data/ext/minimap2/lib/simde/test/arm/neon/test-neon.c +0 -39
- data/ext/minimap2/lib/simde/test/arm/neon/test-neon.h +0 -10
- data/ext/minimap2/lib/simde/test/arm/neon/vadd.c +0 -1260
- data/ext/minimap2/lib/simde/test/arm/neon/vdup_n.c +0 -873
- data/ext/minimap2/lib/simde/test/arm/neon/vmul.c +0 -1084
- data/ext/minimap2/lib/simde/test/arm/neon/vsub.c +0 -1260
- data/ext/minimap2/lib/simde/test/arm/test-arm-internal.h +0 -18
- data/ext/minimap2/lib/simde/test/arm/test-arm.c +0 -20
- data/ext/minimap2/lib/simde/test/arm/test-arm.h +0 -8
- data/ext/minimap2/lib/simde/test/cmake/AddCompilerFlags.cmake +0 -171
- data/ext/minimap2/lib/simde/test/cmake/ExtraWarningFlags.cmake +0 -68
- data/ext/minimap2/lib/simde/test/meson.build +0 -64
- data/ext/minimap2/lib/simde/test/munit/COPYING +0 -21
- data/ext/minimap2/lib/simde/test/munit/Makefile +0 -55
- data/ext/minimap2/lib/simde/test/munit/README.md +0 -54
- data/ext/minimap2/lib/simde/test/munit/example.c +0 -351
- data/ext/minimap2/lib/simde/test/munit/meson.build +0 -37
- data/ext/minimap2/lib/simde/test/munit/munit.c +0 -2055
- data/ext/minimap2/lib/simde/test/munit/munit.h +0 -535
- data/ext/minimap2/lib/simde/test/run-tests.c +0 -20
- data/ext/minimap2/lib/simde/test/run-tests.h +0 -260
- data/ext/minimap2/lib/simde/test/x86/avx.c +0 -13752
- data/ext/minimap2/lib/simde/test/x86/avx2.c +0 -9977
- data/ext/minimap2/lib/simde/test/x86/avx512bw.c +0 -2664
- data/ext/minimap2/lib/simde/test/x86/avx512f.c +0 -10416
- data/ext/minimap2/lib/simde/test/x86/avx512vl.c +0 -210
- data/ext/minimap2/lib/simde/test/x86/fma.c +0 -2557
- data/ext/minimap2/lib/simde/test/x86/meson.build +0 -33
- data/ext/minimap2/lib/simde/test/x86/mmx.c +0 -2878
- data/ext/minimap2/lib/simde/test/x86/skel.c +0 -2984
- data/ext/minimap2/lib/simde/test/x86/sse.c +0 -5121
- data/ext/minimap2/lib/simde/test/x86/sse2.c +0 -9860
- data/ext/minimap2/lib/simde/test/x86/sse3.c +0 -486
- data/ext/minimap2/lib/simde/test/x86/sse4.1.c +0 -3446
- data/ext/minimap2/lib/simde/test/x86/sse4.2.c +0 -101
- data/ext/minimap2/lib/simde/test/x86/ssse3.c +0 -2084
- data/ext/minimap2/lib/simde/test/x86/svml.c +0 -1545
- data/ext/minimap2/lib/simde/test/x86/test-avx.h +0 -16
- data/ext/minimap2/lib/simde/test/x86/test-avx512.h +0 -25
- data/ext/minimap2/lib/simde/test/x86/test-mmx.h +0 -13
- data/ext/minimap2/lib/simde/test/x86/test-sse.h +0 -13
- data/ext/minimap2/lib/simde/test/x86/test-sse2.h +0 -13
- data/ext/minimap2/lib/simde/test/x86/test-x86-internal.h +0 -196
- data/ext/minimap2/lib/simde/test/x86/test-x86.c +0 -48
- data/ext/minimap2/lib/simde/test/x86/test-x86.h +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20d1a7f791311682922de7fcb3eef581102483c8791fbd63966d42ac1492169c
|
4
|
+
data.tar.gz: 58434a8b32467ae6136b80fdaee588d4e7ad62a8a75dcd0c11c4790a13dc3600
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88ad1f8a20f4541999f348e24ccbd28e94da6163e999965a05b65da2b94cc09c67f070aee05e276bf4578d3e43e6986d376134701da84cf09a58b9e2adbaade1
|
7
|
+
data.tar.gz: 4e66f4a5a0b4cfb16c4b592a5de66c0c65b8f7236ded05f6a4f4efdd0a57c3ab0a8440ad7d0bb89126142a49e9a71619e5c95a144f200b43442deb8753cf545b
|
data/README.md
CHANGED
@@ -169,6 +169,15 @@ Run tests.
|
|
169
169
|
bundle exec rake test
|
170
170
|
```
|
171
171
|
|
172
|
+
Release a Gem.
|
173
|
+
|
174
|
+
```
|
175
|
+
bundle exec rake minimap2:cleanall
|
176
|
+
bundle exec rake build
|
177
|
+
ls -l pkg # Check the size of the Gem and make sure it does not contain any unused code such as shared libraries or lib/simde.
|
178
|
+
bundle exec rake release
|
179
|
+
```
|
180
|
+
|
172
181
|
</details>
|
173
182
|
|
174
183
|
ruby-minimap2 is a library under development and there are many points to be improved.
|
data/ext/Rakefile
CHANGED
@@ -37,7 +37,7 @@ namespace :minimap2 do
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
-
desc "
|
40
|
+
desc "`make clean`"
|
41
41
|
task :clean do
|
42
42
|
Dir.chdir(minimap2_dir) do
|
43
43
|
sh "make clean"
|
@@ -46,7 +46,7 @@ namespace :minimap2 do
|
|
46
46
|
|
47
47
|
task cleanall: [:clean]
|
48
48
|
|
49
|
-
desc "
|
49
|
+
desc "`make clean` and remove shared lib"
|
50
50
|
task :cleanall do
|
51
51
|
Dir.chdir(minimap2_dir) do
|
52
52
|
sh "rm #{target_path}" if File.exist?(target_path)
|
data/ext/minimap2/NEWS.md
CHANGED
data/ext/minimap2/README.md
CHANGED
@@ -74,8 +74,8 @@ Detailed evaluations are available from the [minimap2 paper][doi] or the
|
|
74
74
|
Minimap2 is optimized for x86-64 CPUs. You can acquire precompiled binaries from
|
75
75
|
the [release page][release] with:
|
76
76
|
```sh
|
77
|
-
curl -L https://github.com/lh3/minimap2/releases/download/v2.
|
78
|
-
./minimap2-2.
|
77
|
+
curl -L https://github.com/lh3/minimap2/releases/download/v2.26/minimap2-2.26_x64-linux.tar.bz2 | tar -jxvf -
|
78
|
+
./minimap2-2.26_x64-linux/minimap2
|
79
79
|
```
|
80
80
|
If you want to compile from the source, you need to have a C compiler, GNU make
|
81
81
|
and zlib development files installed. Then type `make` in the source code
|
data/ext/minimap2/cookbook.md
CHANGED
@@ -31,8 +31,8 @@ To acquire the data used in this cookbook and to install minimap2 and paftools,
|
|
31
31
|
please follow the command lines below:
|
32
32
|
```sh
|
33
33
|
# install minimap2 executables
|
34
|
-
curl -L https://github.com/lh3/minimap2/releases/download/v2.
|
35
|
-
cp minimap2-2.
|
34
|
+
curl -L https://github.com/lh3/minimap2/releases/download/v2.26/minimap2-2.26_x64-linux.tar.bz2 | tar jxf -
|
35
|
+
cp minimap2-2.26_x64-linux/{minimap2,k8,paftools.js} . # copy executables
|
36
36
|
export PATH="$PATH:"`pwd` # put the current directory on PATH
|
37
37
|
# download example datasets
|
38
38
|
curl -L https://github.com/lh3/minimap2/releases/download/v2.10/cookbook-data.tgz | tar zxf -
|
data/ext/minimap2/minimap.h
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
#include <stdio.h>
|
6
6
|
#include <sys/types.h>
|
7
7
|
|
8
|
-
#define MM_VERSION "2.
|
8
|
+
#define MM_VERSION "2.26-r1175"
|
9
9
|
|
10
10
|
#define MM_F_NO_DIAG (0x001LL) // no exact diagonal hit
|
11
11
|
#define MM_F_NO_DUAL (0x002LL) // skip pairs where query name is lexicographically larger than target name
|
data/ext/minimap2/minimap2.1
CHANGED
data/ext/minimap2/setup.py
CHANGED
@@ -1,40 +1,29 @@
|
|
1
1
|
try:
|
2
2
|
from setuptools import setup, Extension
|
3
|
-
from setuptools.command.build_ext import build_ext
|
4
3
|
except ImportError:
|
5
4
|
from distutils.core import setup
|
6
5
|
from distutils.extension import Extension
|
7
|
-
from distutils.command.build_ext import build_ext
|
8
6
|
|
9
|
-
import sys, platform
|
7
|
+
import sys, platform
|
10
8
|
|
9
|
+
sys.path.append('python')
|
10
|
+
|
11
|
+
extra_compile_args = ['-DHAVE_KALLOC']
|
12
|
+
include_dirs = ["."]
|
13
|
+
|
14
|
+
if platform.machine() in ["aarch64", "arm64"]:
|
15
|
+
include_dirs.append("sse2neon/")
|
16
|
+
extra_compile_args.extend(['-ftree-vectorize', '-DKSW_SSE2_ONLY', '-D__SSE2__'])
|
17
|
+
else:
|
18
|
+
extra_compile_args.append('-msse4.1') # WARNING: ancient x86_64 CPUs don't have SSE4
|
11
19
|
|
12
20
|
def readme():
|
13
21
|
with open('python/README.rst') as f:
|
14
22
|
return f.read()
|
15
23
|
|
16
|
-
|
17
|
-
class LibMM2Build(build_ext):
|
18
|
-
# Uses Makefile to build library, avoids duplicating logic
|
19
|
-
# determining which objects to compile but does require
|
20
|
-
# end users to have Make (since precompiled wheels are not
|
21
|
-
# distributed on PyPI).
|
22
|
-
def run(self):
|
23
|
-
def compile_libminimap2(*args, **kwargs):
|
24
|
-
cmd = ['make', 'libminimap2.a'] + list(args)
|
25
|
-
subprocess.check_call(cmd)
|
26
|
-
options = []
|
27
|
-
if platform.machine() in ["aarch64", "arm64"]:
|
28
|
-
options = ["arm_neon=1", "aarch64=1"]
|
29
|
-
self.execute(
|
30
|
-
compile_libminimap2, options,
|
31
|
-
'Compiling libminimap2 using Makefile')
|
32
|
-
build_ext.run(self)
|
33
|
-
|
34
|
-
|
35
24
|
setup(
|
36
25
|
name = 'mappy',
|
37
|
-
version = '2.
|
26
|
+
version = '2.26',
|
38
27
|
url = 'https://github.com/lh3/minimap2',
|
39
28
|
description = 'Minimap2 python binding',
|
40
29
|
long_description = readme(),
|
@@ -43,15 +32,16 @@ setup(
|
|
43
32
|
license = 'MIT',
|
44
33
|
keywords = 'sequence-alignment',
|
45
34
|
scripts = ['python/minimap2.py'],
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
35
|
+
ext_modules = [Extension('mappy',
|
36
|
+
sources = ['python/mappy.pyx', 'align.c', 'bseq.c', 'lchain.c', 'seed.c', 'format.c', 'hit.c', 'index.c', 'pe.c', 'options.c',
|
37
|
+
'ksw2_extd2_sse.c', 'ksw2_exts2_sse.c', 'ksw2_extz2_sse.c', 'ksw2_ll_sse.c',
|
38
|
+
'kalloc.c', 'kthread.c', 'map.c', 'misc.c', 'sdust.c', 'sketch.c', 'esterr.c', 'splitidx.c'],
|
39
|
+
depends = ['minimap.h', 'bseq.h', 'kalloc.h', 'kdq.h', 'khash.h', 'kseq.h', 'ksort.h',
|
40
|
+
'ksw2.h', 'kthread.h', 'kvec.h', 'mmpriv.h', 'sdust.h',
|
41
|
+
'python/cmappy.h', 'python/cmappy.pxd'],
|
42
|
+
extra_compile_args = extra_compile_args,
|
43
|
+
include_dirs = include_dirs,
|
44
|
+
libraries = ['z', 'm', 'pthread'])],
|
55
45
|
classifiers = [
|
56
46
|
'Development Status :: 5 - Production/Stable',
|
57
47
|
'License :: OSI Approved :: MIT License',
|
data/lib/minimap2/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minimap2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.26.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kojix2
|
@@ -87,102 +87,6 @@ files:
|
|
87
87
|
- ext/minimap2/kthread.h
|
88
88
|
- ext/minimap2/kvec.h
|
89
89
|
- ext/minimap2/lchain.c
|
90
|
-
- ext/minimap2/lib/simde/CONTRIBUTING.md
|
91
|
-
- ext/minimap2/lib/simde/COPYING
|
92
|
-
- ext/minimap2/lib/simde/README.md
|
93
|
-
- ext/minimap2/lib/simde/amalgamate.py
|
94
|
-
- ext/minimap2/lib/simde/meson.build
|
95
|
-
- ext/minimap2/lib/simde/netlify.toml
|
96
|
-
- ext/minimap2/lib/simde/simde/arm/neon.h
|
97
|
-
- ext/minimap2/lib/simde/simde/arm/neon/float32x2.h
|
98
|
-
- ext/minimap2/lib/simde/simde/arm/neon/float32x4.h
|
99
|
-
- ext/minimap2/lib/simde/simde/arm/neon/float64x1.h
|
100
|
-
- ext/minimap2/lib/simde/simde/arm/neon/float64x2.h
|
101
|
-
- ext/minimap2/lib/simde/simde/arm/neon/int16x4.h
|
102
|
-
- ext/minimap2/lib/simde/simde/arm/neon/int16x8.h
|
103
|
-
- ext/minimap2/lib/simde/simde/arm/neon/int32x2.h
|
104
|
-
- ext/minimap2/lib/simde/simde/arm/neon/int32x4.h
|
105
|
-
- ext/minimap2/lib/simde/simde/arm/neon/int64x1.h
|
106
|
-
- ext/minimap2/lib/simde/simde/arm/neon/int64x2.h
|
107
|
-
- ext/minimap2/lib/simde/simde/arm/neon/int8x16.h
|
108
|
-
- ext/minimap2/lib/simde/simde/arm/neon/int8x8.h
|
109
|
-
- ext/minimap2/lib/simde/simde/arm/neon/uint16x4.h
|
110
|
-
- ext/minimap2/lib/simde/simde/arm/neon/uint16x8.h
|
111
|
-
- ext/minimap2/lib/simde/simde/arm/neon/uint32x2.h
|
112
|
-
- ext/minimap2/lib/simde/simde/arm/neon/uint32x4.h
|
113
|
-
- ext/minimap2/lib/simde/simde/arm/neon/uint64x1.h
|
114
|
-
- ext/minimap2/lib/simde/simde/arm/neon/uint64x2.h
|
115
|
-
- ext/minimap2/lib/simde/simde/arm/neon/uint8x16.h
|
116
|
-
- ext/minimap2/lib/simde/simde/arm/neon/uint8x8.h
|
117
|
-
- ext/minimap2/lib/simde/simde/check.h
|
118
|
-
- ext/minimap2/lib/simde/simde/debug-trap.h
|
119
|
-
- ext/minimap2/lib/simde/simde/hedley.h
|
120
|
-
- ext/minimap2/lib/simde/simde/simde-arch.h
|
121
|
-
- ext/minimap2/lib/simde/simde/simde-common.h
|
122
|
-
- ext/minimap2/lib/simde/simde/x86/avx.h
|
123
|
-
- ext/minimap2/lib/simde/simde/x86/avx2.h
|
124
|
-
- ext/minimap2/lib/simde/simde/x86/avx512bw.h
|
125
|
-
- ext/minimap2/lib/simde/simde/x86/avx512f.h
|
126
|
-
- ext/minimap2/lib/simde/simde/x86/avx512vl.h
|
127
|
-
- ext/minimap2/lib/simde/simde/x86/fma.h
|
128
|
-
- ext/minimap2/lib/simde/simde/x86/mmx.h
|
129
|
-
- ext/minimap2/lib/simde/simde/x86/sse.h
|
130
|
-
- ext/minimap2/lib/simde/simde/x86/sse2.h
|
131
|
-
- ext/minimap2/lib/simde/simde/x86/sse3.h
|
132
|
-
- ext/minimap2/lib/simde/simde/x86/sse4.1.h
|
133
|
-
- ext/minimap2/lib/simde/simde/x86/sse4.2.h
|
134
|
-
- ext/minimap2/lib/simde/simde/x86/ssse3.h
|
135
|
-
- ext/minimap2/lib/simde/simde/x86/svml.h
|
136
|
-
- ext/minimap2/lib/simde/test/CMakeLists.txt
|
137
|
-
- ext/minimap2/lib/simde/test/arm/meson.build
|
138
|
-
- ext/minimap2/lib/simde/test/arm/neon/meson.build
|
139
|
-
- ext/minimap2/lib/simde/test/arm/neon/skel.c
|
140
|
-
- ext/minimap2/lib/simde/test/arm/neon/test-neon-internal.h
|
141
|
-
- ext/minimap2/lib/simde/test/arm/neon/test-neon.c
|
142
|
-
- ext/minimap2/lib/simde/test/arm/neon/test-neon.h
|
143
|
-
- ext/minimap2/lib/simde/test/arm/neon/vadd.c
|
144
|
-
- ext/minimap2/lib/simde/test/arm/neon/vdup_n.c
|
145
|
-
- ext/minimap2/lib/simde/test/arm/neon/vmul.c
|
146
|
-
- ext/minimap2/lib/simde/test/arm/neon/vsub.c
|
147
|
-
- ext/minimap2/lib/simde/test/arm/test-arm-internal.h
|
148
|
-
- ext/minimap2/lib/simde/test/arm/test-arm.c
|
149
|
-
- ext/minimap2/lib/simde/test/arm/test-arm.h
|
150
|
-
- ext/minimap2/lib/simde/test/cmake/AddCompilerFlags.cmake
|
151
|
-
- ext/minimap2/lib/simde/test/cmake/ExtraWarningFlags.cmake
|
152
|
-
- ext/minimap2/lib/simde/test/meson.build
|
153
|
-
- ext/minimap2/lib/simde/test/munit/COPYING
|
154
|
-
- ext/minimap2/lib/simde/test/munit/Makefile
|
155
|
-
- ext/minimap2/lib/simde/test/munit/README.md
|
156
|
-
- ext/minimap2/lib/simde/test/munit/example.c
|
157
|
-
- ext/minimap2/lib/simde/test/munit/meson.build
|
158
|
-
- ext/minimap2/lib/simde/test/munit/munit.c
|
159
|
-
- ext/minimap2/lib/simde/test/munit/munit.h
|
160
|
-
- ext/minimap2/lib/simde/test/run-tests.c
|
161
|
-
- ext/minimap2/lib/simde/test/run-tests.h
|
162
|
-
- ext/minimap2/lib/simde/test/x86/avx.c
|
163
|
-
- ext/minimap2/lib/simde/test/x86/avx2.c
|
164
|
-
- ext/minimap2/lib/simde/test/x86/avx512bw.c
|
165
|
-
- ext/minimap2/lib/simde/test/x86/avx512f.c
|
166
|
-
- ext/minimap2/lib/simde/test/x86/avx512vl.c
|
167
|
-
- ext/minimap2/lib/simde/test/x86/fma.c
|
168
|
-
- ext/minimap2/lib/simde/test/x86/meson.build
|
169
|
-
- ext/minimap2/lib/simde/test/x86/mmx.c
|
170
|
-
- ext/minimap2/lib/simde/test/x86/skel.c
|
171
|
-
- ext/minimap2/lib/simde/test/x86/sse.c
|
172
|
-
- ext/minimap2/lib/simde/test/x86/sse2.c
|
173
|
-
- ext/minimap2/lib/simde/test/x86/sse3.c
|
174
|
-
- ext/minimap2/lib/simde/test/x86/sse4.1.c
|
175
|
-
- ext/minimap2/lib/simde/test/x86/sse4.2.c
|
176
|
-
- ext/minimap2/lib/simde/test/x86/ssse3.c
|
177
|
-
- ext/minimap2/lib/simde/test/x86/svml.c
|
178
|
-
- ext/minimap2/lib/simde/test/x86/test-avx.h
|
179
|
-
- ext/minimap2/lib/simde/test/x86/test-avx512.h
|
180
|
-
- ext/minimap2/lib/simde/test/x86/test-mmx.h
|
181
|
-
- ext/minimap2/lib/simde/test/x86/test-sse.h
|
182
|
-
- ext/minimap2/lib/simde/test/x86/test-sse2.h
|
183
|
-
- ext/minimap2/lib/simde/test/x86/test-x86-internal.h
|
184
|
-
- ext/minimap2/lib/simde/test/x86/test-x86.c
|
185
|
-
- ext/minimap2/lib/simde/test/x86/test-x86.h
|
186
90
|
- ext/minimap2/main.c
|
187
91
|
- ext/minimap2/map.c
|
188
92
|
- ext/minimap2/minimap.h
|
@@ -1,114 +0,0 @@
|
|
1
|
-
# Contributing to SIMDe
|
2
|
-
|
3
|
-
First off, if you're even reading this, thank you! There is a lot of
|
4
|
-
work to do, and any help is appreciated.
|
5
|
-
|
6
|
-
If you haven't already, please read the
|
7
|
-
[README](https://github.com/nemequ/simde/blob/master/README.md). The
|
8
|
-
[wiki](https://github.com/nemequ/simde/wiki) also has some good
|
9
|
-
information, especially the
|
10
|
-
[FAQ](https://github.com/nemequ/simde/wiki/FAQ) and a guide on how to
|
11
|
-
[implement a new
|
12
|
-
function](https://github.com/nemequ/simde/wiki/Implementing-a-New-Function).
|
13
|
-
|
14
|
-
For information on developing for architectures you don't have access
|
15
|
-
to, please see the [Development
|
16
|
-
Environment](https://github.com/nemequ/simde/wiki/Development-Environment)
|
17
|
-
page on the wiki.
|
18
|
-
|
19
|
-
If you still have questions, or if anything below doesn't make sense
|
20
|
-
to you, please feel free to use the [issue
|
21
|
-
tracker](https://github.com/nemequ/simde/issues) or the [mailing
|
22
|
-
list](https://groups.google.com/forum/#!forum/simde) to ask. I know
|
23
|
-
the SIMDe documentation needs a lot of improvement, and asking
|
24
|
-
questions will help us understand what is missing, so please don't be
|
25
|
-
shy!
|
26
|
-
|
27
|
-
## Building the Tests
|
28
|
-
|
29
|
-
SIMDe contains an extensive test suite used for development. Most
|
30
|
-
users will never need to build the suite, but if you're contributing
|
31
|
-
code to SIMDe you'll need to build them.
|
32
|
-
|
33
|
-
Here is the basic procedure for compiling the tests:
|
34
|
-
|
35
|
-
```bash
|
36
|
-
mkdir test/build
|
37
|
-
cd test/build
|
38
|
-
CFLAGS="-march=native" CXXFLAGS="-march=native" cmake ..
|
39
|
-
make -j
|
40
|
-
./run-tests
|
41
|
-
```
|
42
|
-
|
43
|
-
Note that `-march=native` may not be the right flag for your compiler.
|
44
|
-
That should work for most compilers on x86/x86_64, though MSVC is an
|
45
|
-
exception (try `/arch:AVX2` instead of `-march=native`). On other
|
46
|
-
architectures please consult your compiler documentation to find out
|
47
|
-
what flags you should use to enable the SIMD extension for your target
|
48
|
-
platform. Here are a few to try:
|
49
|
-
|
50
|
-
* ARM:
|
51
|
-
* `-march=armv8-a+simd` (for ARMv8)
|
52
|
-
* `-march=armv7-a -mfpu=neon` (for ARMv7)
|
53
|
-
* POWER
|
54
|
-
* `-mcpu=native`
|
55
|
-
|
56
|
-
If you need a flag not listed above, please let us know so we can add
|
57
|
-
it to the list.
|
58
|
-
|
59
|
-
## Coding Style
|
60
|
-
|
61
|
-
SIMDe uses two spaces for indentation. Please adjust your editor
|
62
|
-
accordingly.
|
63
|
-
|
64
|
-
The coding style for preprocessor macros is a bit mixed since I made
|
65
|
-
some changes mid-project. For new code, please indent the
|
66
|
-
preprocessor conditions before the hash to the same level as the
|
67
|
-
normal code would be, and indent the code inside of preprocessor
|
68
|
-
conditions as if the conditions were normal code. For example:
|
69
|
-
|
70
|
-
```c
|
71
|
-
int
|
72
|
-
foo(void) {
|
73
|
-
#if 1
|
74
|
-
bar();
|
75
|
-
#else
|
76
|
-
baz();
|
77
|
-
#endif
|
78
|
-
}
|
79
|
-
```
|
80
|
-
|
81
|
-
Other than that, please just try to follow the existing style. We'll
|
82
|
-
add new rules here as the need arises.
|
83
|
-
|
84
|
-
## Commit Messages
|
85
|
-
|
86
|
-
Git commit messages should contain lines no longer than 72 characters.
|
87
|
-
The first line should always be a one-line summary of the commit, with
|
88
|
-
the relevant component followed by a colon and a space (if
|
89
|
-
applicable), then the summary.
|
90
|
-
|
91
|
-
If the one-line summary is insufficient to fully describe the changes
|
92
|
-
further descriptive paragraphs should be added, separated by blank
|
93
|
-
lines.
|
94
|
-
|
95
|
-
For example:
|
96
|
-
|
97
|
-
```
|
98
|
-
sse: add magical code to make everything go fast
|
99
|
-
|
100
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur
|
101
|
-
interdum scelerisque risus non ultricies. Vivamus id tristique mauris.
|
102
|
-
Mauris et augue vel urna aliquam posuere. Morbi in sem nec ante
|
103
|
-
ullamcorper ultrices in quis nibh. In felis velit, semper a mauris sed,
|
104
|
-
congue ullamcorper enim. Vestibulum ante ipsum primis in faucibus orci
|
105
|
-
luctus et ultrices posuere cubilia Curae; Nulla facilisi. Donec
|
106
|
-
scelerisque elit dui, et aliquet magna tincidunt eu.
|
107
|
-
|
108
|
-
Curabitur rhoncus lacus ac elit pulvinar, quis posuere ante ultrices.
|
109
|
-
Suspendisse at mauris vitae justo pretium tempor et in mauris. Nunc
|
110
|
-
facilisis nulla a ante tincidunt, imperdiet rhoncus metus interdum.
|
111
|
-
Vivamus sed nunc vel tellus porta consequat. Donec quis porttitor elit,
|
112
|
-
et cursus urna. Donec et sapien lorem. In imperdiet magna at aliquet
|
113
|
-
hendrerit.
|
114
|
-
```
|
@@ -1,20 +0,0 @@
|
|
1
|
-
Copyright (c) 2017 Evan Nemerson <evan@nemerson.com>
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|