File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
x-pack/plugin/gpu/src/test/java/org/elasticsearch/xpack/gpu/codec Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2222
2323public class DatasetUtilsTests extends ESTestCase {
2424
25+ DatasetUtils datasetUtils ;
26+
2527 @ Before
2628 public void setup () { // TODO: abstract out setup in to common GPUTestcase
2729 assumeTrue ("cuvs runtime only supported on 22 or greater, your JDK is " + Runtime .version (), Runtime .version ().feature () >= 22 );
2830 try (var resources = GPUVectorsFormat .cuVSResourcesOrNull (false )) {
2931 assumeTrue ("cuvs not supported" , resources != null );
3032 }
33+ datasetUtils = DatasetUtils .getInstance ();
3134 }
3235
3336 static final ValueLayout .OfFloat JAVA_FLOAT_LE = ValueLayout .JAVA_FLOAT_UNALIGNED .withOrder (ByteOrder .LITTLE_ENDIAN );
3437
35- final DatasetUtils datasetUtils = DatasetUtils .getInstance ();
36-
3738 public void testBasic () throws Exception {
3839 try (Directory dir = new MMapDirectory (createTempDir ("testBasic" ))) {
3940 int numVecs = randomIntBetween (1 , 100 );
You can’t perform that action at this time.
0 commit comments