NVIDIAGameWorks / FleX

Other
650 stars 100 forks source link

Build / run demo on Linux #49

Open fadavi opened 5 years ago

fadavi commented 5 years ago

Any change happened after #30 in v1.2?!

zyablik commented 5 years ago

I've got the same issue on ubuntu 17.10 with cuda 8.0.61 (which is available in ubuntu repo)

NvFlexDemoReleaseCUDA_x64 printed "Error creating CUDA context." and exited.

It happened because of NvFlexDeviceCreateCudaContext() in demo/main.cpp returned false

It doesn't fail with cuda 9.2 (you need to download it from nvidia site)

Or you can just comment out exit() call in demo/main.cpp:

    bool success = NvFlexDeviceCreateCudaContext(g_device);

    if (!success)
    {
        printf("Error creating CUDA context.\n");
//      exit(-1);
    }

Looks like success = false doesn't affect anything, at least on my machine all demo scenes works perfectly.

CK85 commented 5 years ago

It would be better anyway if FleX supports OpenGL like it does with DirectX...