diff options
author | Gon Solo <gonsolo> | 2022-11-08 21:31:48 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-11-08 21:40:57 +0300 |
commit | c306ccb67fcf44d9bca3c4ed0f20d1af1df29f26 (patch) | |
tree | 26f6dbf70e7e919208c75f1a07770b51b5d939d8 /intern/cycles/device/hip/device_impl.h | |
parent | 5925b1821a5706d59d1504ab3b426ce5df6aff52 (diff) |
Fix Cycles error with runtime compilation when there is no path to OptiX SDK
If no OPTIX_ROOT is set, nvcc fails to compile because there is a stray "-I"
in the arguments. Detect if the include path is empty and act accordingly.
Differential Revision: https://developer.blender.org/D16308
Diffstat (limited to 'intern/cycles/device/hip/device_impl.h')
-rw-r--r-- | intern/cycles/device/hip/device_impl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/device/hip/device_impl.h b/intern/cycles/device/hip/device_impl.h index 9afef3789af..efdc15dca79 100644 --- a/intern/cycles/device/hip/device_impl.h +++ b/intern/cycles/device/hip/device_impl.h @@ -74,7 +74,7 @@ class HIPDevice : public Device { bool use_adaptive_compilation(); - virtual string compile_kernel_get_common_cflags(const uint kernel_features); + string compile_kernel_get_common_cflags(const uint kernel_features); string compile_kernel(const uint kernel_features, const char *name, const char *base = "hip"); |