Closed GoogleCodeExporter closed 8 years ago
Could you tell us what GPU you have?
Original comment by wnbell
on 18 Feb 2011 at 12:03
NVIDIA GeForce 9400M
Original comment by ingo.jae...@gmail.com
on 18 Feb 2011 at 12:40
Ok, that makes sense. The GeForce 9400M supports "Compute Capability" 1.1
which corresponds to arch=sm_11 [1]. The higher compute capabilities will not
be compatible with your hardware and should produce an error when the program
is run.
I'm not sure why no error is being printed in this case. When I compile and
run a similar program [2] on my GPU that supports Compute Capability 1.1 (just
like yours) I get the expected error message:
$ nvcc -arch=sm_13 sort.cu
$ ./a.out
sorting integers
terminate called after throwing an instance of 'thrust::system::system_error'
what(): invalid device function
Aborted
Compiling with -arch=sm_10 or -arch=sm_11 should eliminate the problem.
[1] http://en.wikipedia.org/wiki/CUDA#Supported_GPUs
[2] http://code.google.com/p/thrust/source/browse/examples/sort.cu
Original comment by wnbell
on 18 Feb 2011 at 12:55
Alright, thanks for the update! Sorry for the confusion.
Original comment by ingo.jae...@gmail.com
on 20 Feb 2011 at 8:48
Original issue reported on code.google.com by
ingo.jae...@gmail.com
on 18 Feb 2011 at 11:49Attachments: