Skip to content

Commit

Permalink
Run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice committed Nov 19, 2024
1 parent 0f0e1f4 commit b347169
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -403,4 +403,3 @@ dependencies:
- make
- maven
- openjdk=11.*

6 changes: 3 additions & 3 deletions java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ For more information on JCuda and potentially more up to date installation instr
[JCuda](http://javagl.de/jcuda.org/), [JCuda Usage](https://github.com/jcuda/jcuda-main/blob/master/USAGE.md), [JCuda Maven Repo](https://mvnrepository.com/artifact/org.jcuda)

## Compilation and examples
An example for how to use the Java KvikIO bindings can be found in `src/test/java/ai/rapids/kvikio/cufile/BasicReadWriteTest.java`
An example for how to use the Java KvikIO bindings can be found in `src/test/java/ai/rapids/kvikio/cufile/BasicReadWriteTest.java`

##### Note: This example has a dependency on JCuda so ensure that when running the example the JCuda shared library files are on the JVM library path along with the `libCuFileJNI.so` file.

### Setup a test file target
### Setup a test file target
##### NOTE: the example as written will default to creating a temporary file in your `/tmp` directory. This directory may not be mounted in a compatible manner for use with GDS on your particular system, causing the example to run in compatibility mode. If this is the case, run the following command replacing `/mnt/nvme/` with your mount directory and update `cufile/BasicReadWriteTest.java` to point to the correct file path.

touch /mnt/nvme/java_test
Expand All @@ -30,4 +30,4 @@ An example for how to use the Java KvikIO bindings can be found in `src/test/jav
### Rerun example code with Maven

cd kvikio/java/
mvn test
mvn test
4 changes: 2 additions & 2 deletions java/src/main/native/src/CuFileJni.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
* limitations under the License.
*/

#include <cstring>
#include <fcntl.h>
#include <unistd.h>
#include <cstring>
#include <memory>
#include <stdexcept>
#include <unistd.h>

#include <cufile.h>

Expand Down

0 comments on commit b347169

Please sign in to comment.