Skip to content

Commit 73436ab

Browse files
committed
int(platform.h): In platform.h, define OIIO_DEVICE macro (#4290)
Signed-off-by: Larry Gritz <[email protected]>
1 parent 22a0b71 commit 73436ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/include/OpenImageIO/platform.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,8 +524,10 @@
524524
// function decorators needed when compiling for CUDA devices.
525525
#ifdef __CUDACC__
526526
# define OIIO_HOSTDEVICE __host__ __device__
527+
# define OIIO_DEVICE __device__
527528
#else
528529
# define OIIO_HOSTDEVICE
530+
# define OIIO_DEVICE
529531
#endif
530532

531533

0 commit comments

Comments
 (0)