Skip to content

Commit

Permalink
Fix UnsatisfiedLinkError in some rare cases (#2700)
Browse files Browse the repository at this point in the history
Signed-off-by: Chong Gao <[email protected]>
Co-authored-by: Chong Gao <[email protected]>
  • Loading branch information
res-life and Chong Gao authored Dec 16, 2024
1 parent 6c69666 commit 49ea936
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/nvidia/spark/rapids/jni/Hash.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
import ai.rapids.cudf.NativeDepsLoader;

public class Hash {
static {
NativeDepsLoader.loadNativeDeps();
}

// there doesn't appear to be a useful constant in spark to reference. this could break.
static final long DEFAULT_XXHASH64_SEED = 42;

public static final int MAX_STACK_DEPTH = getMaxStackDepth();

static {
NativeDepsLoader.loadNativeDeps();
}

/**
* Create a new vector containing spark's 32-bit murmur3 hash of each row in the table.
* Spark's murmur3 hash uses a different tail processing algorithm.
Expand Down

0 comments on commit 49ea936

Please sign in to comment.