{"action":"created","issue":{"url":"https://api.github.com/repos/bytedeco/javacpp-presets/issues/187","repository_url":"https://api.github.com/repos/bytedeco/javacpp-presets","labels_url":"https://api.github.com/repos/bytedeco/javacpp-presets/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/bytedeco/javacpp-presets/issues/187/comments","events_url":"https://api.github.com/repos/bytedeco/javacpp-presets/issues/187/events","html_url":"https://github.com/bytedeco/javacpp-presets/issues/187","id":145213433,"number":187,"title":"caffe with USE_CUDNN = true","user":{"login":"mmanco","id":358610,"avatar_url":"https://avatars.githubusercontent.com/u/358610?v=3","gravatar_id":"","url":"https://api.github.com/users/mmanco","html_url":"https://github.com/mmanco","followers_url":"https://api.github.com/users/mmanco/followers","following_url":"https://api.github.com/users/mmanco/following{/other_user}","gists_url":"https://api.github.com/users/mmanco/gists{/gist_id}","starred_url":"https://api.github.com/users/mmanco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmanco/subscriptions","organizations_url":"https://api.github.com/users/mmanco/orgs","repos_url":"https://api.github.com/users/mmanco/repos","events_url":"https://api.github.com/users/mmanco/events{/privacy}","received_events_url":"https://api.github.com/users/mmanco/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bytedeco/javacpp-presets/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-01T15:42:56Z","updated_at":"2016-04-08T00:16:05Z","closed_at":"2016-04-02T08:34:06Z","body":"When trying to build caffe with ```USE_CUDNN``` set to ```true``` the build will fail on compile phase with the following error:\r\n\r\n```\r\n[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.3:compile (default-compile) on project caffe: Compilation failure: Compilation failure:\r\n[ERROR] /workspace/javacpp-presets/caffe/src/main/java/org/bytedeco/javacpp/caffe.java:[21709,82] cannot find symbol\r\n[ERROR] symbol:   class cudnnStatus_t\r\n[ERROR] location: class org.bytedeco.javacpp.caffe\r\n[ERROR] /workspace/javacpp-presets/caffe/src/main/java/org/bytedeco/javacpp/caffe.java:[21724,52] cannot find symbol\r\n[ERROR] symbol:   class cudnnDataType_t\r\n[ERROR] location: class org.bytedeco.javacpp.caffe.dataType\r\n[ERROR] /workspace/javacpp-presets/caffe/src/main/java/org/bytedeco/javacpp/caffe.java:[21728,53] zero() in org.bytedeco.javacpp.caffe.dataType cannot override <P>zero() in org.bytedeco.javacpp.Pointer\r\n```\r\n\r\nThe produced code looks like:\r\n\r\n```java\r\n// #define CUDNN_CHECK(condition)\r\n//   do {\r\n//     cudnnStatus_t status = condition;\r\n//     CHECK_EQ(status, CUDNN_STATUS_SUCCESS) << \" \"\r\n//       << cudnnGetErrorString(status);\r\n//   } while (0)\r\n\r\npublic static native @Cast(\"const char*\") BytePointer cudnnGetErrorString(@ByVal cudnnStatus_t status);\r\n@Name(\"caffe::cudnn::dataType<float>\") public static class dataType extends Pointer {\r\n    static { Loader.load(); }\r\n    /** Default native constructor. */\r\n    public dataType() { super((Pointer)null); allocate(); }\r\n    /** Native array allocator. Access with {@link Pointer#position(long)}. */\r\n    public dataType(long size) { super((Pointer)null); allocateArray(size); }\r\n    /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */\r\n    public dataType(Pointer p) { super(p); }\r\n    private native void allocate();\r\n    private native void allocateArray(long size);\r\n    @Override public dataType position(long position) {\r\n        return (dataType)super.position(position);\r\n    }\r\n\r\n  @MemberGetter public static native @Const @ByRef cudnnDataType_t type();\r\n  public static native float oneval(); public static native void oneval(float oneval);\r\n  public static native float zeroval(); public static native void zeroval(float zeroval);\r\n  @MemberGetter public static native @Const Pointer one();\r\n  @MemberGetter public static native @Const Pointer zero();\r\n}\r\n```\r\n\r\nAs you can see ```cudnnGetErrorString``` method signature is not correct as ```cudnnStatus_t``` should be actually an ```int```\r\n\r\nI tried to add cuda preset as a dependency to the caffe preset which led to same build result.\r\n\r\nDo I miss something here ?\r\n "},"comment":{"url":"https://api.github.com/repos/bytedeco/javacpp-presets/issues/comments/207146549","html_url":"https://github.com/bytedeco/javacpp-presets/issues/187#issuecomment-207146549","issue_url":"https://api.github.com/repos/bytedeco/javacpp-presets/issues/187","id":207146549,"user":{"login":"mmanco","id":358610,"avatar_url":"https://avatars.githubusercontent.com/u/358610?v=3","gravatar_id":"","url":"https://api.github.com/users/mmanco","html_url":"https://github.com/mmanco","followers_url":"https://api.github.com/users/mmanco/followers","following_url":"https://api.github.com/users/mmanco/following{/other_user}","gists_url":"https://api.github.com/users/mmanco/gists{/gist_id}","starred_url":"https://api.github.com/users/mmanco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmanco/subscriptions","organizations_url":"https://api.github.com/users/mmanco/orgs","repos_url":"https://api.github.com/users/mmanco/repos","events_url":"https://api.github.com/users/mmanco/events{/privacy}","received_events_url":"https://api.github.com/users/mmanco/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T00:16:05Z","updated_at":"2016-04-08T00:16:05Z","body":"I can't say that most people uses it as sometimes using cuDNN will be efficient and sometimes not.  \r\nbut, having the ability to easily control it through the preset will be perfect."}}