Maxwell Support for pure Optix?

Questions, suggestions, use cases, announcements related to Lighthouse 2.
Post Reply
Philipp
Posts: 3
Joined: Wed Aug 07, 2019 1:01 pm

Maxwell Support for pure Optix?

Post by Philipp » Fri Aug 09, 2019 3:01 pm

Hello,

thanks for activating my account.

my question:
is there intentionally no support for maxwell GPUs in rendercore_optixrtx_b?
I know that maxwell GPUs do not have RTX cores anyway. So the comment in the code recommends to use rendercore_optixprime_b for better performance. However I am currently in the situation that I would like to develop my software partly on my own laptop, which has no RTX cores. But I would like to also sometimes use computers at my university that do have RTX cores. Especially for benchmarking later. For that reason I would like to use pure OptiX. Because as I understand it pure OptiX will also run on CUDA devices without OptiX. But it will automatically switch to RTX cores when executed on a different PC with an RTX graphics card.

However the function compileToPTX(...) in cudatools.h seems to not support maxwell GPUs in line 142:

Code: Select all

		sprintf_s(versionString, "compute_%i", cc >= 70 ? 70 : 61 );
		const char* compiler_options[] = { "-arch", versionString, "-restrict", "-use_fast_math", "-default-device", "-rdc", "true", "-D__x86_64", 0 };
Is there a reason that this code allows only to use at least compute_61 or is this a bug ? Are there any features needed by lighthouse2 currently that are not available on GPUs with only compute capability 5.0 ?
Actually when I replace the compiler option with compute_50 it seems to run just fine on my laptop with a maxwall GPU (GeForce GTX 960M)

jbikker
Posts: 217
Joined: Mon Nov 28, 2011 8:18 am
Contact:

Re: Maxwell Support for pure Optix?

Post by jbikker » Fri Aug 09, 2019 6:04 pm

You are right, it should run just fine on Maxwell. In fact, when compiling the .cu files, it should already aim for SM 5.0, like the Optix Prime code. It might even support older devices, but I didn't test it; at some point available GPU memory may become a problem.

Philipp
Posts: 3
Joined: Wed Aug 07, 2019 1:01 pm

Re: Maxwell Support for pure Optix?

Post by Philipp » Tue Aug 13, 2019 2:34 pm

Thanks.
But would do you mean "it should already aim for SM 5.0"?
The code in cudatools.h forces it to aim for 6.1 by passing the compiler option compute61 as I understand it.
So this is a bug in the file cudatools.h that should be fixed?

jbikker
Posts: 217
Joined: Mon Nov 28, 2011 8:18 am
Contact:

Re: Maxwell Support for pure Optix?

Post by jbikker » Mon Aug 19, 2019 9:58 am

Correct. It will be fixed in the next release.

Philipp
Posts: 3
Joined: Wed Aug 07, 2019 1:01 pm

Re: Maxwell Support for pure Optix?

Post by Philipp » Tue Aug 20, 2019 8:28 pm

OK. Thanks.

Post Reply