when I use nsight and cmake to compile one same project, and I got two different answers ! why ???

Hi there,
when I use Nsight and cmake to compile one same project and ran, I got two different answers… (The Nsight result is right, and the cmake result is wrong).
my cmake version is 2.8.12.2
here is my cmake source:

cmake_minimum_required(VERSION 2.8)
	project(test)
	message(STATUS "project : test")
	message(STATUS "Project Directory: ${PROJECT_SOURCE_DIR}")

	set(CMAKE_BUILD_TYPE DEBUG)

	set(SOURCE_FILES test.cu matrix.cu)

	execute_process(COMMAND sh ../shell.sh
		OUTPUT_VARIABLE FINDCUDA)

	message(STATUS "find cuda.cmake version is : ${FINDCUDA}")

	include(/usr/share/${FINDCUDA}/Modules/FindCUDA.cmake)
	add_definitions(-std=c++11)
	cuda_add_executable(test ${SOURCE_FILES})

	# add link directories
	link_directories(/usr/local/cuda/lib64)
	set(LIBS_DIR /usr/local/cuda/lib64)
	
	find_package(OpenCV REQUIRED)
	find_package(CUDA REQUIRED)

	# specify needed libraries
	target_link_libraries(test ${OpenCV_LIBS})
	target_link_libraries(test ${LIBS_DIR}/libcublas.so)
	target_link_libraries(test ${LIBS_DIR}/libcusolver.so)

thanku very much …

what’s more, use make can get wrong result too…