summaryrefslogtreecommitdiff
path: root/tools/gfx/cuda/cuda-helper-functions.cpp
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-10-29 14:49:26 +0800
committerGitHub <noreply@github.com>2024-10-29 14:49:26 +0800
commitf65d756bff8d4c5cbc15bd0322a2ae8e6b896a21 (patch)
treeea1d61342cd29368e19135000ec2948813096205 /tools/gfx/cuda/cuda-helper-functions.cpp
parenta729c15e9dce9f5116a38afc66329ab2ca4cea54 (diff)
format
* format * Minor test fixes * enable checking cpp format in ci
Diffstat (limited to 'tools/gfx/cuda/cuda-helper-functions.cpp')
-rw-r--r--tools/gfx/cuda/cuda-helper-functions.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/gfx/cuda/cuda-helper-functions.cpp b/tools/gfx/cuda/cuda-helper-functions.cpp
index d478e8815..9fb69d620 100644
--- a/tools/gfx/cuda/cuda-helper-functions.cpp
+++ b/tools/gfx/cuda/cuda-helper-functions.cpp
@@ -24,7 +24,9 @@ SlangResult CUDAErrorInfo::handle() const
builder << m_errorString;
}
- getDebugCallback()->handleMessage(DebugMessageType::Error, DebugMessageSource::Driver,
+ getDebugCallback()->handleMessage(
+ DebugMessageType::Error,
+ DebugMessageSource::Driver,
builder.getUnownedSlice().begin());
// Slang::signalUnexpectedError(builder.getBuffer());
@@ -39,14 +41,14 @@ SlangResult _handleCUDAError(CUresult cuResult, const char* file, int line)
return info.handle();
}
-# ifdef RENDER_TEST_OPTIX
+#ifdef RENDER_TEST_OPTIX
static bool _isError(OptixResult result)
{
return result != OPTIX_SUCCESS;
}
-# if 1
+#if 1
static SlangResult _handleOptixError(OptixResult result, char const* file, int line)
{
fprintf(
@@ -63,8 +65,8 @@ void _optixLogCallback(unsigned int level, const char* tag, const char* message,
{
fprintf(stderr, "optix: %s (%s)\n", message, tag);
}
-# endif
-# endif
+#endif
+#endif
AdapterLUID getAdapterLUID(int deviceIndex)
{