You can compile the shared library and run the included tests/examples using Maven.
Important Note on File Paths:
By default, examples create temporary files in /tmp. If your /tmp directory is not mounted in a way compatible with GDS, the example will run in compatibility mode. To test true GDS performance, create a file on a compatible mount point (e.g., /mnt/nvme/) and update the file path in src/test/java/ai/rapids/kvikio/cufile/BasicReadWriteTest.java.
Important Note on Library Paths:
When running examples, ensure that the JCuda shared library files and the libCuFileJNI.so file are included in your JVM library path.
# 1. Prepare a compatible test file (replace /mnt/nvme/ with your mount)
touch /mnt/nvme/java_test
# 2. Compile the shared library and run tests
cd kvikio/java/
mvn clean install
# 3. To just rerun the tests
cd kvikio/java/
mvn test