mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-03 04:12:48 +08:00
Fix #431.
Summary: Added missing include for cstdint for Windows and removed problematic inline assembly. Reviewed By: bottler Differential Revision: D24838053 fbshipit-source-id: 95496be841c2c22a82068073d4740e98ee8a02ac
This commit is contained in:
parent
83fef0a576
commit
194b29fb6c
@ -209,10 +209,6 @@ __device__ static float atomicMin(float* address, float val) {
|
|||||||
#define RNORM3DF(x, y, z) rnorm3df(x, y, z)
|
#define RNORM3DF(x, y, z) rnorm3df(x, y, z)
|
||||||
|
|
||||||
// High level.
|
// High level.
|
||||||
INLINE DEVICE void prefetch_l1(unsigned long addr) {
|
|
||||||
asm(" prefetch.global.L1 [ %1 ];" : "=l"(addr) : "l"(addr));
|
|
||||||
}
|
|
||||||
#define PREFETCH(PTR) prefetch_l1((unsigned long)(PTR))
|
|
||||||
#define GET_SORT_WS_SIZE(RES_PTR, KEY_TYPE, VAL_TYPE, NUM_OBJECTS) \
|
#define GET_SORT_WS_SIZE(RES_PTR, KEY_TYPE, VAL_TYPE, NUM_OBJECTS) \
|
||||||
cub::DeviceRadixSort::SortPairsDescending( \
|
cub::DeviceRadixSort::SortPairsDescending( \
|
||||||
(void*)NULL, \
|
(void*)NULL, \
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
#ifndef PULSAR_NATIVE_INCLUDE_CAMERA_H_
|
#ifndef PULSAR_NATIVE_INCLUDE_CAMERA_H_
|
||||||
#define PULSAR_NATIVE_INCLUDE_CAMERA_H_
|
#define PULSAR_NATIVE_INCLUDE_CAMERA_H_
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
#include "../global.h"
|
#include "../global.h"
|
||||||
|
|
||||||
namespace pulsar {
|
namespace pulsar {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user