Skip to content

Commit

Permalink
int(platform.h): In platform.h, define OIIO_DEVICE macro (#4290)
Browse files Browse the repository at this point in the history
Signed-off-by: Larry Gritz <lg@larrygritz.com>
  • Loading branch information
lgritz authored Jun 17, 2024
1 parent 59b5458 commit 1a1e6b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/include/OpenImageIO/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,10 @@
// function decorators needed when compiling for CUDA devices.
#ifdef __CUDACC__
# define OIIO_HOSTDEVICE __host__ __device__
# define OIIO_DEVICE __device__
#else
# define OIIO_HOSTDEVICE
# define OIIO_DEVICE
#endif


Expand Down

0 comments on commit 1a1e6b1

Please sign in to comment.