Thrust error with cuda 9.1 with windows 10

Hello Dev Team,

I compiled my code with cuda 9.1 and getting issue with Cuda memcheck
please check it and help me

cuda-memcheck C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe

Microsoft Windows [Version 10.0.16299.309]
© 2017 Microsoft Corporation. All rights reserved.

C:\Windows\system32>set CUDA_INJECTION32_PATH=

C:\Windows\system32>set CUDA_INJECTION64_PATH=

C:\Windows\system32>cuda-memcheck C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe
========= CUDA-MEMCHECK
---- General Information for device 0----
Name: Quadro M1200
Compute capability: 5.0
Clock rate: 1148000
Device copy overlap: Enabled
Kernel execition timeout : Enabled

---- Memory Information for device 0----
Total global mem: 4294967296
Total constant mem: 65536
Max mem pitch: 2147483647
Texture Alignment: 512

---- MP Information for device 0----
Multiprocessor count: 5
Shared mem per mp: 49152
Registers per mp: 65536
Threads in warp: 32
Max threads per block: 1024
Max thread dimensions: (1024 1024 64)
Max grid dimensions: (2147483647 65535 65535)

Status: Using GLEW 2.1.0
========= ERROR SUMMARY: 0 errors

C:\Windows\system32>cuda-memcheck C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe
========= CUDA-MEMCHECK
---- General Information for device 0----
Name: Quadro M1200
Compute capability: 5.0
Clock rate: 1148000
Device copy overlap: Enabled
Kernel execition timeout : Enabled

---- Memory Information for device 0----
Total global mem: 4294967296
Total constant mem: 65536
Max mem pitch: 2147483647
Texture Alignment: 512

---- MP Information for device 0----
Multiprocessor count: 5
Shared mem per mp: 49152
Registers per mp: 65536
Threads in warp: 32
Max threads per block: 1024
Max thread dimensions: (1024 1024 64)
Max grid dimensions: (2147483647 65535 65535)

Status: Using GLEW 2.1.0
CUDA error 9 [C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\include\thrust/system/cuda/detail/parallel_for.h, 143]: invalid configuration argument
Thurst Runtime Error: parallel_for failed: invalid configuration argument
========= Program hit cudaErrorInvalidConfiguration (error 9) due to “invalid configuration argument” on CUDA API call to cudaLaunch.
========= Saved host backtrace up to driver entry point at error
========= Host Frame:C:\Windows\system32\nvcuda.dll (cuGraphicsResourceGetMappedPointer + 0x2cbecc) [0x2d959b]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\cudart64_91.dll (cudaLaunch + 0x14f) [0x2d4df]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (cudaLaunch + 0x28) [0x1d39c8]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (__device_stub__Z17_gl_init_rest_lenPfPyS0_S_S0_y + 0xec) [0x1d259c]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (_gl_init_rest_len + 0x5a) [0x1d1d7a]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (gpu_cloth_solver::init_edge_rest_len + 0x191) [0xa6de1]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (gpu_cloth_solver::pre_sim + 0x6d) [0xa629d]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (gpu_cloth_solver::gpu_cloth_solver + 0x9bb) [0xa37ab]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (gpu_cloth_solver_block::gpu_cloth_solver_block + 0x3b) [0x104dab]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (plugin_IO::internel_setup + 0x1bf) [0x15ceaf]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (plugin_IO::init_main + 0x190) [0x15cce0]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (plugin_IO::init_from_file + 0x2a6) [0x15cae6]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (mainFrame::mainFrame + 0x217) [0x68ed7]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (UI::GLWnd::MainFrameWindow + 0x6f8) [0x593c8]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (UI::GLWnd::WndProc + 0x33d) [0x5a1ad]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (UI::WindowProc + 0x48) [0x59e48]
========= Host Frame:C:\Windows\System32\USER32.dll (CallWindowProcW + 0x4dd) [0xb85d]
========= Host Frame:C:\Windows\System32\USER32.dll (CallWindowProcW + 0x8b) [0xb40b]
========= Host Frame:C:\Windows\SYSTEM32\OPENGL32.dll (glDebugEntry + 0xf16d) [0x38e5d]
========= Host Frame:C:\Windows\System32\USER32.dll (CallWindowProcW + 0x4dd) [0xb85d]
========= Host Frame:C:\Windows\System32\USER32.dll (DispatchMessageW + 0x1af) [0xb1ef]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (main + 0x22e) [0x7f13e]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (invoke_main + 0x34) [0x228394]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (__scrt_common_main_seh + 0x127) [0x2282c7]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (__scrt_common_main + 0xe) [0x22818e]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (mainCRTStartup + 0x9) [0x2283a9]
========= Host Frame:C:\Windows\System32\KERNEL32.DLL (BaseThreadInitThunk + 0x14) [0x11fe4]
========= Host Frame:C:\Windows\SYSTEM32\ntdll.dll (RtlUserThreadStart + 0x21) [0x6efc1]

========= Program hit cudaErrorInvalidConfiguration (error 9) due to “invalid configuration argument” on CUDA API call to cudaPeekAtLastError.
========= Saved host backtrace up to driver entry point at error
========= Host Frame:C:\Windows\system32\nvcuda.dll (cuGraphicsResourceGetMappedPointer + 0x2cbecc) [0x2d959b]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\cudart64_91.dll (cudaPeekAtLastError + 0x107) [0x1d117]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::launcher::triple_chevron::doit_host<void (__cdecl*)(thrust::cuda_cub::__transform::unary_transform_f<unsigned __int64 * __ptr64,thrust::device_ptr,thrust::cuda_cub::__transform::no_stencil_tag,thrust::identity,thrust::cuda_cub::__transform::always_true_predicate>,__int64),thrust::cuda_cub::__transform::unary_transform_f<unsigned __int64 * __ptr64,thrust::device_ptr,thrust::cuda_cub::__transform::no_stencil_tag,thrust::identity,thrust::cuda_cub::__transform::always_true_predicate>,__int64> + 0xc0) [0xd1dd0]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::launcher::triple_chevron::doit<void (__cdecl*)(thrust::cuda_cub::__transform::unary_transform_f<unsigned __int64 * __ptr64,thrust::device_ptr,thrust::cuda_cub::__transform::no_stencil_tag,thrust::identity,thrust::cuda_cub::__transform::always_true_predicate>,__int64),thrust::cuda_cub::__transform::unary_transform_f<unsigned __int64 * __ptr64,thrust::device_ptr,thrust::cuda_cub::__transform::no_stencil_tag,thrust::identity,thrust::cuda_cub::__transform::always_true_predicate>,__int64> + 0x5b) [0xd0d7b]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::core::AgentLauncher<thrust::cuda_cub::__parallel_for::ParallelForAgent<thrust::cuda_cub::__transform::unary_transform_f<unsigned __int64 * __ptr64,thrust::device_ptr,thrust::cuda_cub::__transform::no_stencil_tag,thrust::identity,thrust::cuda_cub::__transform::always_true_predicate>,__int64> >::launch_impl<thrust::cuda_cub::__transform::unary_transform_f<unsigned __int64 * __ptr64,thrust::device_ptr,thrust::cuda_cub::__transform::no_stencil_tag,thrust::identity,thrust::cuda_cub::__transform::always_true_predicate>,__int64> + 0x192) [0xd7df2]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::core::AgentLauncher<thrust::cuda_cub::__parallel_for::ParallelForAgent<thrust::cuda_cub::__transform::unary_transform_f<unsigned __int64 * __ptr64,thrust::device_ptr,thrust::cuda_cub::__transform::no_stencil_tag,thrust::identity,thrust::cuda_cub::__transform::always_true_predicate>,__int64> >::launch<thrust::cuda_cub::__transform::unary_transform_f<unsigned __int64 * __ptr64,thrust::device_ptr,thrust::cuda_cub::__transform::no_stencil_tag,thrust::identity,thrust::cuda_cub::__transform::always_true_predicate>,__int64> + 0x59) [0xd6359]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::__parallel_for::parallel_for<thrust::cuda_cub::__transform::unary_transform_f<unsigned __int64 * __ptr64,thrust::device_ptr,thrust::cuda_cub::__transform::no_stencil_tag,thrust::identity,thrust::cuda_cub::__transform::always_true_predicate>,__int64> + 0xec) [0xdd61c]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::parallel_for<thrust::cuda_cub::tag,thrust::cuda_cub::__transform::unary_transform_f<unsigned __int64 * __ptr64,thrust::device_ptr,thrust::cuda_cub::__transform::no_stencil_tag,thrust::identity,thrust::cuda_cub::__transform::always_true_predicate>,__int64> + 0x77) [0xdee47]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::__transform::unary<thrust::cuda_cub::execution_policythrust::cuda_cub::tag,unsigned __int64 * __ptr64,__int64,thrust::device_ptr,thrust::cuda_cub::__transform::no_stencil_tag,thrust::identity,thrust::cuda_cub::__transform::always_true_predicate> + 0xc3) [0xeb553]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::transform_if<thrust::cuda_cub::tag,unsigned __int64 * __ptr64,thrust::device_ptr,thrust::cuda_cub::__transform::no_stencil_tag,thrust::identity,thrust::cuda_cub::__transform::always_true_predicate> + 0x8b) [0xe90bb]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::transform_if<thrust::cuda_cub::tag,unsigned __int64 * __ptr64,thrust::device_ptr,thrust::identity,thrust::cuda_cub::__transform::always_true_predicate> + 0x74) [0xe9024]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::transform<thrust::cuda_cub::tag,unsigned __int64 * __ptr64,thrust::device_ptr,thrust::identity > + 0x68) [0xe83d8]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::__copy::device_to_device<thrust::cuda_cub::tag,unsigned __int64 * __ptr64,thrust::device_ptr > + 0x59) [0xcd949]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::copy_n<thrust::cuda_cub::tag,unsigned __int64 * __ptr64,__int64,thrust::device_ptr > + 0x73) [0xca4f3]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::__copy::cross_system_copy_n<thrust::system::cpp::detail::tag,thrust::cuda_cub::tag,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,__int64,thrust::device_ptr > + 0x1e4) [0xcba44]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::__copy::cross_system_copy_n<thrust::system::cpp::detail::tag,thrust::cuda_cub::tag,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,__int64,thrust::device_ptr > + 0xd4) [0xcbb94]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::__copy::cross_system_copy<thrust::system::cpp::detail::tag,thrust::cuda_cub::tag,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,thrust::device_ptr > + 0x12b) [0xcab9b]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::copy<thrust::system::cpp::detail::tag,thrust::cuda_cub::tag,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,thrust::device_ptr > + 0xde) [0xc8fbe]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::copy<thrust::cuda_cub::cross_systemthrust::system::cpp::detail::tag,thrust::cuda_cub::tag,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,thrust::device_ptr > + 0xfe) [0xc7e9e]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::two_system_copy<thrust::system::cpp::detail::tag,thrust::cuda_cub::tag,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,thrust::device_ptr > + 0x11f) [0xeb06f]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::allocator_traits_detail::copy_construct_range<thrust::system::cpp::detail::tag,thrust::device_malloc_allocator,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,thrust::device_ptr > + 0xf1) [0xc9f31]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::copy_construct_range<thrust::system::cpp::detail::tag,thrust::device_malloc_allocator,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,thrust::device_ptr > + 0xcd) [0xca02d]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::contiguous_storage<unsigned __int64,thrust::device_malloc_allocator >::uninitialized_copy<std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > > > + 0xf4) [0xec8c4]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::vector_base<unsigned __int64,thrust::device_malloc_allocator >::allocate_and_copy<std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > > > + 0x1cd) [0xc674d]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::vector_base<unsigned __int64,thrust::device_malloc_allocator >::range_init<std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > > > + 0x157) [0xe53f7]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::vector_base<unsigned __int64,thrust::device_malloc_allocator >::range_init<std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > > > + 0xa6) [0xe5276]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::vector_base<unsigned __int64,thrust::device_malloc_allocator >::vector_base<unsigned __int64,thrust::device_malloc_allocator ><unsigned __int64,std::allocator > + 0xe0) [0xb2c10]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::device_vector<unsigned __int64,thrust::device_malloc_allocator >::device_vector<unsigned __int64,thrust::device_malloc_allocator ><unsigned __int64,std::allocator > + 0x32) [0xb2b22]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (gpu_cloth_solver_block::init_independant_sets + 0x175) [0x1072d5]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (gpu_cloth_solver_block::gpu_cloth_solver_block + 0x159) [0x104ec9]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (plugin_IO::internel_setup + 0x1bf) [0x15ceaf]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (plugin_IO::init_main + 0x190) [0x15cce0]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (plugin_IO::init_from_file + 0x2a6) [0x15cae6]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (mainFrame::mainFrame + 0x217) [0x68ed7]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (UI::GLWnd::MainFrameWindow + 0x6f8) [0x593c8]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (UI::GLWnd::WndProc + 0x33d) [0x5a1ad]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (UI::WindowProc + 0x48) [0x59e48]
========= Host Frame:C:\Windows\System32\USER32.dll (CallWindowProcW + 0x4dd) [0xb85d]
========= Host Frame:C:\Windows\System32\USER32.dll (CallWindowProcW + 0x8b) [0xb40b]
========= Host Frame:C:\Windows\SYSTEM32\OPENGL32.dll (glDebugEntry + 0xf16d) [0x38e5d]
========= Host Frame:C:\Windows\System32\USER32.dll (CallWindowProcW + 0x4dd) [0xb85d]
========= Host Frame:C:\Windows\System32\USER32.dll (DispatchMessageW + 0x1af) [0xb1ef]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (main + 0x22e) [0x7f13e]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (invoke_main + 0x34) [0x228394]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (__scrt_common_main_seh + 0x127) [0x2282c7]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (__scrt_common_main + 0xe) [0x22818e]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (mainCRTStartup + 0x9) [0x2283a9]
========= Host Frame:C:\Windows\System32\KERNEL32.DLL (BaseThreadInitThunk + 0x14) [0x11fe4]
========= Host Frame:C:\Windows\SYSTEM32\ntdll.dll (RtlUserThreadStart + 0x21) [0x6efc1]

========= Program hit cudaErrorInvalidConfiguration (error 9) due to “invalid configuration argument” on CUDA API call to cudaPeekAtLastError.
========= Saved host backtrace up to driver entry point at error
========= Host Frame:C:\Windows\system32\nvcuda.dll (cuGraphicsResourceGetMappedPointer + 0x2cbecc) [0x2d959b]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\cudart64_91.dll (cudaPeekAtLastError + 0x107) [0x1d117]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::__parallel_for::parallel_for<thrust::cuda_cub::__transform::unary_transform_f<unsigned __int64 * __ptr64,thrust::device_ptr,thrust::cuda_cub::__transform::no_stencil_tag,thrust::identity,thrust::cuda_cub::__transform::always_true_predicate>,__int64> + 0xf1) [0xdd621]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::parallel_for<thrust::cuda_cub::tag,thrust::cuda_cub::__transform::unary_transform_f<unsigned __int64 * __ptr64,thrust::device_ptr,thrust::cuda_cub::__transform::no_stencil_tag,thrust::identity,thrust::cuda_cub::__transform::always_true_predicate>,__int64> + 0x77) [0xdee47]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::__transform::unary<thrust::cuda_cub::execution_policythrust::cuda_cub::tag,unsigned __int64 * __ptr64,__int64,thrust::device_ptr,thrust::cuda_cub::__transform::no_stencil_tag,thrust::identity,thrust::cuda_cub::__transform::always_true_predicate> + 0xc3) [0xeb553]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::transform_if<thrust::cuda_cub::tag,unsigned __int64 * __ptr64,thrust::device_ptr,thrust::cuda_cub::__transform::no_stencil_tag,thrust::identity,thrust::cuda_cub::__transform::always_true_predicate> + 0x8b) [0xe90bb]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::transform_if<thrust::cuda_cub::tag,unsigned __int64 * __ptr64,thrust::device_ptr,thrust::identity,thrust::cuda_cub::__transform::always_true_predicate> + 0x74) [0xe9024]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::transform<thrust::cuda_cub::tag,unsigned __int64 * __ptr64,thrust::device_ptr,thrust::identity > + 0x68) [0xe83d8]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::__copy::device_to_device<thrust::cuda_cub::tag,unsigned __int64 * __ptr64,thrust::device_ptr > + 0x59) [0xcd949]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::copy_n<thrust::cuda_cub::tag,unsigned __int64 * __ptr64,__int64,thrust::device_ptr > + 0x73) [0xca4f3]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::__copy::cross_system_copy_n<thrust::system::cpp::detail::tag,thrust::cuda_cub::tag,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,__int64,thrust::device_ptr > + 0x1e4) [0xcba44]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::__copy::cross_system_copy_n<thrust::system::cpp::detail::tag,thrust::cuda_cub::tag,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,__int64,thrust::device_ptr > + 0xd4) [0xcbb94]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::__copy::cross_system_copy<thrust::system::cpp::detail::tag,thrust::cuda_cub::tag,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,thrust::device_ptr > + 0x12b) [0xcab9b]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::copy<thrust::system::cpp::detail::tag,thrust::cuda_cub::tag,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,thrust::device_ptr > + 0xde) [0xc8fbe]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::copy<thrust::cuda_cub::cross_systemthrust::system::cpp::detail::tag,thrust::cuda_cub::tag,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,thrust::device_ptr > + 0xfe) [0xc7e9e]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::two_system_copy<thrust::system::cpp::detail::tag,thrust::cuda_cub::tag,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,thrust::device_ptr > + 0x11f) [0xeb06f]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::allocator_traits_detail::copy_construct_range<thrust::system::cpp::detail::tag,thrust::device_malloc_allocator,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,thrust::device_ptr > + 0xf1) [0xc9f31]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::copy_construct_range<thrust::system::cpp::detail::tag,thrust::device_malloc_allocator,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,thrust::device_ptr > + 0xcd) [0xca02d]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::contiguous_storage<unsigned __int64,thrust::device_malloc_allocator >::uninitialized_copy<std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > > > + 0xf4) [0xec8c4]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::vector_base<unsigned __int64,thrust::device_malloc_allocator >::allocate_and_copy<std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > > > + 0x1cd) [0xc674d]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::vector_base<unsigned __int64,thrust::device_malloc_allocator >::range_init<std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > > > + 0x157) [0xe53f7]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::vector_base<unsigned __int64,thrust::device_malloc_allocator >::range_init<std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > > > + 0xa6) [0xe5276]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::vector_base<unsigned __int64,thrust::device_malloc_allocator >::vector_base<unsigned __int64,thrust::device_malloc_allocator ><unsigned __int64,std::allocator > + 0xe0) [0xb2c10]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::device_vector<unsigned __int64,thrust::device_malloc_allocator >::device_vector<unsigned __int64,thrust::device_malloc_allocator ><unsigned __int64,std::allocator > + 0x32) [0xb2b22]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (gpu_cloth_solver_block::init_independant_sets + 0x175) [0x1072d5]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (gpu_cloth_solver_block::gpu_cloth_solver_block + 0x159) [0x104ec9]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (plugin_IO::internel_setup + 0x1bf) [0x15ceaf]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (plugin_IO::init_main + 0x190) [0x15cce0]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (plugin_IO::init_from_file + 0x2a6) [0x15cae6]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (mainFrame::mainFrame + 0x217) [0x68ed7]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (UI::GLWnd::MainFrameWindow + 0x6f8) [0x593c8]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (UI::GLWnd::WndProc + 0x33d) [0x5a1ad]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (UI::WindowProc + 0x48) [0x59e48]
========= Host Frame:C:\Windows\System32\USER32.dll (CallWindowProcW + 0x4dd) [0xb85d]
========= Host Frame:C:\Windows\System32\USER32.dll (CallWindowProcW + 0x8b) [0xb40b]
========= Host Frame:C:\Windows\SYSTEM32\OPENGL32.dll (glDebugEntry + 0xf16d) [0x38e5d]
========= Host Frame:C:\Windows\System32\USER32.dll (CallWindowProcW + 0x4dd) [0xb85d]
========= Host Frame:C:\Windows\System32\USER32.dll (DispatchMessageW + 0x1af) [0xb1ef]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (main + 0x22e) [0x7f13e]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (invoke_main + 0x34) [0x228394]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (__scrt_common_main_seh + 0x127) [0x2282c7]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (__scrt_common_main + 0xe) [0x22818e]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (mainCRTStartup + 0x9) [0x2283a9]
========= Host Frame:C:\Windows\System32\KERNEL32.DLL (BaseThreadInitThunk + 0x14) [0x11fe4]
========= Host Frame:C:\Windows\SYSTEM32\ntdll.dll (RtlUserThreadStart + 0x21) [0x6efc1]

========= Program hit cudaErrorInvalidConfiguration (error 9) due to “invalid configuration argument” on CUDA API call to cudaPeekAtLastError.
========= Saved host backtrace up to driver entry point at error
========= Host Frame:C:\Windows\system32\nvcuda.dll (cuGraphicsResourceGetMappedPointer + 0x2cbecc) [0x2d959b]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\cudart64_91.dll (cudaPeekAtLastError + 0x107) [0x1d117]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::__parallel_for::parallel_for<thrust::cuda_cub::__transform::unary_transform_f<unsigned __int64 * __ptr64,thrust::device_ptr,thrust::cuda_cub::__transform::no_stencil_tag,thrust::identity,thrust::cuda_cub::__transform::always_true_predicate>,__int64> + 0x10e) [0xdd63e]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::parallel_for<thrust::cuda_cub::tag,thrust::cuda_cub::__transform::unary_transform_f<unsigned __int64 * __ptr64,thrust::device_ptr,thrust::cuda_cub::__transform::no_stencil_tag,thrust::identity,thrust::cuda_cub::__transform::always_true_predicate>,__int64> + 0x77) [0xdee47]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::__transform::unary<thrust::cuda_cub::execution_policythrust::cuda_cub::tag,unsigned __int64 * __ptr64,__int64,thrust::device_ptr,thrust::cuda_cub::__transform::no_stencil_tag,thrust::identity,thrust::cuda_cub::__transform::always_true_predicate> + 0xc3) [0xeb553]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::transform_if<thrust::cuda_cub::tag,unsigned __int64 * __ptr64,thrust::device_ptr,thrust::cuda_cub::__transform::no_stencil_tag,thrust::identity,thrust::cuda_cub::__transform::always_true_predicate> + 0x8b) [0xe90bb]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::transform_if<thrust::cuda_cub::tag,unsigned __int64 * __ptr64,thrust::device_ptr,thrust::identity,thrust::cuda_cub::__transform::always_true_predicate> + 0x74) [0xe9024]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::transform<thrust::cuda_cub::tag,unsigned __int64 * __ptr64,thrust::device_ptr,thrust::identity > + 0x68) [0xe83d8]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::__copy::device_to_device<thrust::cuda_cub::tag,unsigned __int64 * __ptr64,thrust::device_ptr > + 0x59) [0xcd949]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::copy_n<thrust::cuda_cub::tag,unsigned __int64 * __ptr64,__int64,thrust::device_ptr > + 0x73) [0xca4f3]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::__copy::cross_system_copy_n<thrust::system::cpp::detail::tag,thrust::cuda_cub::tag,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,__int64,thrust::device_ptr > + 0x1e4) [0xcba44]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::__copy::cross_system_copy_n<thrust::system::cpp::detail::tag,thrust::cuda_cub::tag,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,__int64,thrust::device_ptr > + 0xd4) [0xcbb94]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::__copy::cross_system_copy<thrust::system::cpp::detail::tag,thrust::cuda_cub::tag,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,thrust::device_ptr > + 0x12b) [0xcab9b]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::cuda_cub::copy<thrust::system::cpp::detail::tag,thrust::cuda_cub::tag,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,thrust::device_ptr > + 0xde) [0xc8fbe]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::copy<thrust::cuda_cub::cross_systemthrust::system::cpp::detail::tag,thrust::cuda_cub::tag,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,thrust::device_ptr > + 0xfe) [0xc7e9e]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::two_system_copy<thrust::system::cpp::detail::tag,thrust::cuda_cub::tag,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,thrust::device_ptr > + 0x11f) [0xeb06f]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::allocator_traits_detail::copy_construct_range<thrust::system::cpp::detail::tag,thrust::device_malloc_allocator,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,thrust::device_ptr > + 0xf1) [0xc9f31]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::copy_construct_range<thrust::system::cpp::detail::tag,thrust::device_malloc_allocator,std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > >,thrust::device_ptr > + 0xcd) [0xca02d]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::contiguous_storage<unsigned __int64,thrust::device_malloc_allocator >::uninitialized_copy<std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > > > + 0xf4) [0xec8c4]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::vector_base<unsigned __int64,thrust::device_malloc_allocator >::allocate_and_copy<std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > > > + 0x1cd) [0xc674d]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::vector_base<unsigned __int64,thrust::device_malloc_allocator >::range_init<std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > > > + 0x157) [0xe53f7]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::vector_base<unsigned __int64,thrust::device_malloc_allocator >::range_init<std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types > > > + 0xa6) [0xe5276]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::detail::vector_base<unsigned __int64,thrust::device_malloc_allocator >::vector_base<unsigned __int64,thrust::device_malloc_allocator ><unsigned __int64,std::allocator > + 0xe0) [0xb2c10]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (thrust::device_vector<unsigned __int64,thrust::device_malloc_allocator >::device_vector<unsigned __int64,thrust::device_malloc_allocator ><unsigned __int64,std::allocator > + 0x32) [0xb2b22]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (gpu_cloth_solver_block::init_independant_sets + 0x175) [0x1072d5]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (gpu_cloth_solver_block::gpu_cloth_solver_block + 0x159) [0x104ec9]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (plugin_IO::internel_setup + 0x1bf) [0x15ceaf]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (plugin_IO::init_main + 0x190) [0x15cce0]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (plugin_IO::init_from_file + 0x2a6) [0x15cae6]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (mainFrame::mainFrame + 0x217) [0x68ed7]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (UI::GLWnd::MainFrameWindow + 0x6f8) [0x593c8]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (UI::GLWnd::WndProc + 0x33d) [0x5a1ad]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (UI::WindowProc + 0x48) [0x59e48]
========= Host Frame:C:\Windows\System32\USER32.dll (CallWindowProcW + 0x4dd) [0xb85d]
========= Host Frame:C:\Windows\System32\USER32.dll (CallWindowProcW + 0x8b) [0xb40b]
========= Host Frame:C:\Windows\SYSTEM32\OPENGL32.dll (glDebugEntry + 0xf16d) [0x38e5d]
========= Host Frame:C:\Windows\System32\USER32.dll (CallWindowProcW + 0x4dd) [0xb85d]
========= Host Frame:C:\Windows\System32\USER32.dll (DispatchMessageW + 0x1af) [0xb1ef]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (main + 0x22e) [0x7f13e]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (invoke_main + 0x34) [0x228394]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (__scrt_common_main_seh + 0x127) [0x2282c7]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (__scrt_common_main + 0xe) [0x22818e]
========= Host Frame:C:\Users\ivasa\Desktop\2015\bin\Clothsim.exe (mainCRTStartup + 0x9) [0x2283a9]
========= Host Frame:C:\Windows\System32\KERNEL32.DLL (BaseThreadInitThunk + 0x14) [0x11fe4]
========= Host Frame:C:\Windows\SYSTEM32\ntdll.dll (RtlUserThreadStart + 0x21) [0x6efc1]

========= ERROR SUMMARY: 4 errors

C:\Windows\system32>

Please check this.