diff options
| author | Yong He <yonghe@outlook.com> | 2023-03-16 22:17:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-16 22:17:34 -0700 |
| commit | fc9cba5307d166f7fda3f7e2c8b5bed7b06fef54 (patch) | |
| tree | 1a7e73b2b00cd5672c0c7318a6f4ab52cf7c5557 /source/slang/slang-options.cpp | |
| parent | 2fd1ac6c85230d47c008e45fefcc1c49400e96bd (diff) | |
Add `[CudaDeviceExport]` to allow exporting CUDA device functions. (#2708)
* Add `[CudaDeviceExport]` to allow exporting CUDA device functions.
* Fix.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-options.cpp')
| -rw-r--r-- | source/slang/slang-options.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp index fea9a1c71..944162acc 100644 --- a/source/slang/slang-options.cpp +++ b/source/slang/slang-options.cpp @@ -2185,8 +2185,8 @@ struct OptionsParser // If we don't have any raw outputs but do have a raw target, // and output type is callable, add an empty' rawOutput. - if (rawOutputs.getCount() == 0 && - rawTargets.getCount() == 1 && + if (rawOutputs.getCount() == 0 && + rawTargets.getCount() == 1 && ArtifactDescUtil::makeDescForCompileTarget(asExternal(rawTargets[0].format)).kind == ArtifactKind::HostCallable) { RawOutput rawOutput; |
