Problem: Running a CUDA program on GTX 770M

I don’t see any CUDA code in what you posted. Are you sure ‘sum1’ should be an ‘int’ variable? I interpret ‘h_wt’ to be some kind of weight vector, and thus likely of a floating-point type? In general it is a best practice to always state the desired type explicitly, rather than to rely on C’s default typing as ‘int’.