tasks.withType(org.bytedeco.gradle.javacpp.BuildTask).configureEach {
{
generate = true;
compile = false;
outputDirectory = file("$buildDir/../src/main/cpp");
classOrPackageNames = ['org.helixd2s.yavulkanmod.alter.*'];
}
{
generate = true;
compile = false;
header = true;
outputDirectory = file("$buildDir/../src/main/cpp/header");
classOrPackageNames = ['org.helixd2s.yavulkanmod.alter.header.*'];
}
{
generate = true;
compile = false;
header = true;
outputDirectory = file("$buildDir/../src/main/cpp/info");
classOrPackageNames = ['org.helixd2s.yavulkanmod.alter.info.*'];
}
}
java.lang.UnsatisfiedLinkError: 'void org.helixd2s.yavulkanmod.alter.Alter.initialize()'
JNIEXPORT void JNICALL Java_org_helixd2s_yavulkanmod_alter_Alter_initialize(JNIEnv* env, jclass cls) {
jthrowable exc = NULL;
try {
alter::initialize();
} catch (...) {
exc = JavaCPP_handleException(env, 7);
}
if (exc != NULL) {
env->Throw(exc);
}
}
uintptr_t rval = (uintptr_t)ptr->extent;
, needs with &
.&& cast.endsWith("*)")
? How about uintptr_t
or intptr_t
?@Cast
: @Name("extent") @MemberGetter @Cast("uintptr_t") @ByRef public native long getExtent();
(uintptr_t)&ptr->extent;
, not somebody like (some*)
I’m also running into an issue with PyTorch Conv2d. I’m not sure, but I think I’m calling it correctly:
val t = torch.randn(1,1,32,32)
val conv = new Conv2dImpl(new Conv2dOptions(1, 6, new LongPointer(2).put(3,3)))
conv.forward(t)
[error] Caused by: java.lang.RuntimeException: from is out of bounds for float
(c++ stack trace omitted)
kernel_size
to new LongPointer(1).put(3))
the error message changes:Calculated padded input size per channel: (32 x 32). Kernel size: (3 x 2043). Kernel size can't be greater than actual input size
std::string prettyPrintToString() {
std::ostringstream oss;
pretty_print(oss);
return oss.str();
}
put(long i, long l)
overload wasn’t there back then.
Looks like there's somebody trying to replace the bazelbuild download on one of the wiki pages with what I assume is a malware download
I reverted one yesterday, @devjeonghwan reverted one earlier today and I just reverted a third. I've reported to GitHub but maybe you're able to ban the user from interacting with the repository or something until GitHub responds @saudet https://github.com/bytedeco/javacpp-presets/wiki/Build-Environments/_history
NVIDIA GeForce GTX 1050
(as expected)
javacpp_IntPoint
(maybe some embedded nulls there...)
limit
= 80, position
= 0. So we never call strlen()