| 381 | | '''In this case, We have to use "gcc-4.1" & "g++-4.1" instead of "gcc-4.3" to avoid getting stdio error.'''[[BR]] |
| 382 | | ---> /usr/include/bits/stdio2.h(35): error: identifier "__builtin_va_arg_pack" is undefined [[BR]] |
| 383 | | |
| 384 | | CUDA compiled example PATH: /usr/local/NVIDIA_CUDA_SDK/bin/linux/release [[BR]] |
| 385 | | |
| 386 | | For example: [[BR]] |
| 387 | | Choose an example from /opt/NVIDIA_CUDA_SDK/projects [[BR]] |
| 388 | | rock@cloud:~$ cd /opt/NVIDIA_CUDA_SDK/projects/bandwidthTest/ [[BR]] |
| 389 | | rock@cloud:~/opt/NVIDIA_CUDA_SDK/projects/bandwidthTest$ sudo make [[BR]] |
| 390 | | rock@cloud:~/opt/NVIDIA_CUDA_SDK/projects/bandwidthTest$ cd ../../bin/linux/release/ [[BR]] |
| 391 | | rock@cloud:~/opt/NVIDIA_CUDA_SDK/bin/linux/release$ ./bandwidthTest [[BR]] |
| 392 | | rock@cloud:~/opt/NVIDIA_CUDA_SDK/bin/linux/release$ ./deviceQuery [[BR]] |
| | 381 | |
| | 382 | '''Important:'''[[BR]] |
| | 383 | In this case, We have to use "gcc-4.1" & "g++-4.1" instead of "gcc-4.3" to avoid getting stdio error.[[BR]] |
| | 384 | {{{ |
| | 385 | /usr/include/bits/stdio2.h(...): error: identifier "__builtin_va_arg_pack" is undefined |
| | 386 | }}} |
| | 387 | |
| | 388 | Example !HowTo : [[BR]] |
| | 389 | rider@cloud:~/opt/NVIDIA_CUDA_SDK$ sudo make [[BR]] |
| | 390 | rider@cloud:~/opt/NVIDIA_CUDA_SDK$ cd ./bin/linux/release/ |
| | 391 | rider@cloud:~/opt/NVIDIA_CUDA_SDK/bin/linux/release$ ./bandwidthTest [[BR]] |
| | 392 | rider@cloud:~/opt/NVIDIA_CUDA_SDK/bin/linux/release$ ./deviceQuery [[BR]] |
| | 393 | |
| | 394 | ### Demo Example ### |