Flex 1.2 demo crashes on Ubuntu

About my setup:

  • Ubuntu 16.04
  • gcc/g++ 5.4.0
  • CUDA 9.1
  • NVIDIA Driver 390.30
  • Using 2 1080Ti

When building the FleX demo on Ubuntu and then running it, the program crashes with the following error:

Reshaping
*** stack smashing detected ***: ./bin/linux64/NvFlexDemoDebugCUDA_x64 terminated
Aborted (core dumped)

I was able to narrow it down and it seems that the error is caused by NvFlexInit in demo/main.cpp:3247

Any ideas how I can work this out?

I found the issue. The static libraries that are in the repository were compiled with CUDA 8. If you compile the demo using CUDA 9.1 or CUDA 9 the program crashes.

Is NVIDIA going to publish the binaries compiled with CUDA 9.1? or is the FleX library source code available somewhere so we can compile our own libraries?

Sorry about this, the build machines used to generate the final libraries were using the wrong CUDA version. We will update it and push new binaries.

Thanks,
Miles

That’s great, thank you!

I am also having trouble running the demo on Ubuntu 16.04. The output of my run:

./NvFlexDemoReleaseCUDA_x64
Reshaping
Flex: Could not open CUDA driver, ensure you have the latest driver (nvcuda.dll) installed and an NVIDIA GPU present on the system - ./…/…/…/src/cuda/util.cpp:124
Flex: Could not initialize CUDA driver - …/…/…/src/cuda/flex.cu:4624
Could not initialize Flex, exiting.

My cuda version:

nvcc --version
nvcc: NVIDIA ® Cuda compiler driver
Copyright © 2005-2018 NVIDIA Corporation
Built on Wed_Apr_11_23:16:29_CDT_2018
Cuda compilation tools, release 9.2, V9.2.88

My nvidia driver version:

nvidia-smi
Fri Jun 8 14:46:00 2018
±----------------------------------------------------------------------------+
| NVIDIA-SMI 396.24.02 Driver Version: 396.24.02 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GT 730M Off | 00000000:02:00.0 N/A | N/A |
| N/A 60C P0 N/A / N/A | 750MiB / 983MiB | N/A Default |
±------------------------------±---------------------±---------------------+

±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 Not Supported |
±----------------------------------------------------------------------------+