Commit dbfb3a91 authored by Jeremy Reizenstein's avatar Jeremy Reizenstein Committed by Facebook GitHub Bot
Browse files

remove __restrict__ in cpp

Summary: Remove use of nonstandard C++. Noticed on windows in issue https://github.com/facebookresearch/pytorch3d/issues/843. (We use `__restrict__` in CUDA, where it is fine, even on windows)

Reviewed By: nikhilaravi

Differential Revision: D31006516

fbshipit-source-id: 929ba9b3216cb70fad3ffa3274c910618d83973f
parent 526df446
...@@ -32,8 +32,7 @@ void SamplePdfCpu_worker( ...@@ -32,8 +32,7 @@ void SamplePdfCpu_worker(
auto bins_a = bins.accessor<float, 2>(); auto bins_a = bins.accessor<float, 2>();
auto weights_a = weights.accessor<float, 2>(); auto weights_a = weights.accessor<float, 2>();
float* __restrict__ output_p = float* output_p = outputs.data_ptr<float>() + start_batch * n_samples;
outputs.data_ptr<float>() + start_batch * n_samples;
#ifdef USE_BINARY_SEARCH #ifdef USE_BINARY_SEARCH
std::vector<float> partial_sums(n_bins); std::vector<float> partial_sums(n_bins);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment