File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
pgvectorscale/src/access_method Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 64
64
id : runtests
65
65
run : |
66
66
cd pgvectorscale
67
- ls
68
- ${{ matrix.platform.rustflags != '' && format('RUSTFLAGS="{0}"', matrix.platform.rustflags) || '' }} cargo pgrx test -- pg${{ matrix.pg.major }}
67
+ ${{ matrix.platform.rustflags != '' && format('export RUSTFLAGS="{0}"', matrix.platform.rustflags) || '' }}
68
+ cargo pgrx test -- pg${{ matrix.pg.major }}
Original file line number Diff line number Diff line change 1
1
/* we use the avx2 version of x86 functions. This verifies that's kosher */
2
2
#[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ]
3
3
#[ cfg( not( target_feature = "avx2" ) ) ]
4
+ #[ cfg( not( doc) ) ]
4
5
compile_error ! (
5
6
"On x86, the AVX2 feature must be enabled. Set RUSTFLAGS=\" -C target-feature=+avx2,+fma\" "
6
7
) ;
7
8
8
9
pub fn init ( ) {
9
10
#[ cfg( any( target_arch = "x86" , target_arch = "x86_64" ) ) ]
10
- if ( !is_x86_feature_detected ! ( "avx2" ) || !is_x86_feature_detected ! ( "fma" ) ) {
11
+ if !is_x86_feature_detected ! ( "avx2" ) || !is_x86_feature_detected ! ( "fma" ) {
11
12
panic ! ( "On x86, pgvectorscale requires the CPU to support AVX2 and FMA. See https://github.com/timescale/pgvectorscale/issues/115" ) ;
12
13
}
13
14
}
Original file line number Diff line number Diff line change @@ -7,12 +7,14 @@ use simdeez::sse41::*;
7
7
use simdeez:: avx2:: * ;
8
8
9
9
#[ cfg( not( target_feature = "avx2" ) ) ]
10
+ #[ cfg( not( doc) ) ]
10
11
compile_error ! (
11
12
"On x86, the AVX2 feature must be enabled. Set RUSTFLAGS=\" -C target-feature=+avx2,+fma\" "
12
13
) ;
13
14
14
15
//note: without fmadd, the performance degrades pretty badly. Benchmark before disbaling
15
16
#[ cfg( not( target_feature = "fma" ) ) ]
17
+ #[ cfg( not( doc) ) ]
16
18
compile_error ! (
17
19
"On x86, the fma feature must be enabled. Set RUSTFLAGS=\" -C target-feature=+avx2,+fma\" "
18
20
) ;
You can’t perform that action at this time.
0 commit comments