What is required to run samples like the /NVIDIA_CUDA-9.0_Samples/4_Finance/BlackScholes executable? I run it and nothing happens (which happens seems to happen with all samples that aren’t particle simulations). I have read the read me which states Minimum Spec: SM 2.0 but what is that? I want to run and explore all the examples given right from my jetson tx2. I already have caffe installed on it what do i next? Is there something else i need that i am missing? All input on this situation is welcome
I am using R28.2 (from JetPack3.2). If I cd to “/usr/local/cuda-9.0/samples/4_Finance/BlackScholes/” I can run “make -j4” and the executable is built (I’m building natively on the TX2…cross compile would imply the need to set an architecture for the Jetson before it could run CUDA on the Jetson). When I run this I get:
buntu@x2:/usr/local/cuda/samples/4_Finance/BlackScholes$ ./BlackScholes [./BlackScholes] - Starting... GPU Device 0: "NVIDIA Tegra X2" with compute capability 6.2 Initializing data... ...allocating CPU memory for options. ...allocating GPU memory for options. ...generating input data in CPU mem. ...copying input data to GPU mem. Data init done. Executing Black-Scholes GPU kernel (512 iterations)... Options count : 8000000 BlackScholesGPU() time : 3.384678 msec Effective memory bandwidth: 23.635929 GB/s Gigaoptions per second : 2.363593 BlackScholes, Throughput = 2.3636 GOptions/s, Time = 0.00338 s, Size = 8000000 options, NumDevsUsed = 1, Workgroup = 128 Reading back GPU results... Checking the results... ...running CPU calculations. Comparing the results... L1 norm: 1.741792E-07 Max absolute error: 1.192093E-05 Shutting down... ...releasing GPU memory. ...releasing CPU memory. Shutdown done. [BlackScholes] - Test Summary NOTE: The CUDA Samples are not meant for performance measurements. Results may vary when GPU Boost is enabled. Test passed
Although this example does not require a DISPLAY environment variable to be set some other programs do. If you can build and run natively on the TX2 all is complete and as expected for this subset of software. If you have errors with other parts of this mixed with something else then I would assume it is the “something else” not doing as expected.