How can we use npp9.0 with cmake in my c++ project?

Hi everyone
I am creating a c ++ project managed by cmake, but it works fine in cuda8.0, but not in cuda9.0. I do not know why. Please advise。

cmakefile

cmake_minimum_required(VERSION 2.8)

project(RobconCV)

set(CMAKE_CXX_COMPILER "g++")
set(CMAKE_CXX_FLAGS "-std=c++11 -O3 -ffast-math")

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)

find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})

find_package(CUDA REQUIRED)
include_directories(${CUDA_INCLUDE_DIRS})
LIST(APPEND CUDA_NVCC_FLAGS --complier-options -fno-strict-aliasting -lineinfo -use_fast_math -Xptxas -dlcm=cg)

find_library(/usr/lib/libueye_api64.so.4.90 ueye_api)

set(THIRD_PARTY_LIBS
    ${OpenCV_LIBS}
    ${CUDA_LIBRARIES}
    ueye_api  
    )

include_directories(${PROJECT_SOURCE_DIR}/include)
add_subdirectory(src)
add_subdirectory(test)

cmakefile in test folder

add_executable(CvuEye_Test CvuEye_Test.cpp)
target_link_libraries(CvuEye_Test CvuEye)

add_executable(GpuuEye_Test GpuuEye_Test.cpp)
target_link_libraries(GpuuEye_Test CvuEye)

add_executable(GpuMatNpp_Test GpuMatNpp_Test.cpp)
target_link_libraries(GpuMatNpp_Test CvuEye)

code where has problem

/*************************************************************************
	> File Name: GpuMatNpp_Test.cpp
	> Author: 
	> Mail: 
	> Created Time: 2017年12月15日 星期五 10时44分15秒
 ************************************************************************/

#include "cuda_runtime.h"
#include <iostream>
#include "opencv2/gpu/gpu.hpp"
#include "opencv2/opencv.hpp"
#include <nppi.h>

using namespace std;
using namespace cv;

int main()
{    
    Mat hSrc = imread("../zero.jpg",1);
    imshow("Input",hSrc);

    gpu::GpuMat dSrc;
    dSrc.upload(hSrc);

    cout<<"Image on host memory, step = "<<hSrc.step<<"  isContinuous? "<<hSrc.isContinuous()<<endl;
    cout<<"Image on device memory, step = "<<dSrc.step<<"  isContinuous? "<<dSrc.isContinuous()<<endl;

    NppiSize oMaskSize = {5, 5};
    NppiSize oSizeROI = {hSrc.cols - oMaskSize.width + 1, hSrc.rows - oMaskSize.height + 1};
    NppiPoint oAnchor = {0, 0};

    Size oSize(oSizeROI.width,oSizeROI.height);
    Mat hDst = Mat(oSize,hSrc.type());
    gpu::GpuMat dDst(oSize,hSrc.type());

    nppiFilterBox_8u_C3R(dSrc.data, dSrc.step, dDst.data, dDst.step, oSizeROI, oMaskSize, oAnchor);

    dDst.download(hDst);

    imshow("Output",hDst);
    cvWaitKey();

    return 0;
}

Hi,

Could you share the error message you met with CUDA-9.0?

One possible reason that causing this error is the incompatible library.
Have you checked if the library ‘ibueye_api64.so.4.90’ is built with CUDA-9.0?

Thanks

Hi 13106948383,

Have you resolved the problem?
If not, please follow our suggestion to provide the error message or checked if the library ‘ibueye_api64.so.4.90’ is built with CUDA-9.0?

Thanks

I found my mistake, in cuda9.0, I need to link different library files, thank you very much