Skip to content

Commit ffaf62e

Browse files
committed
fix compilation error, test=develop
1 parent ebad5a4 commit ffaf62e

File tree

6 files changed

+13
-1
lines changed

6 files changed

+13
-1
lines changed

paddle/fluid/operators/diag_embed_op.cu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
#include <thrust/device_vector.h>
16+
#include <thrust/host_vector.h>
1517
#include "paddle/fluid/framework/op_registry.h"
1618
#include "paddle/fluid/operators/diag_embed_op.h"
1719

paddle/fluid/operators/gaussian_random_op.cu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ distributed under the License is distributed on an "AS IS" BASIS,
1111
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
See the License for the specific language governing permissions and
1313
limitations under the License. */
14+
#include <thrust/device_vector.h>
15+
#include <thrust/host_vector.h>
1416
#include <thrust/random.h>
1517
#include <thrust/transform.h>
1618
#include "paddle/fluid/framework/generator.h"

paddle/fluid/operators/modified_huber_loss_op.cu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ distributed under the License is distributed on an "AS IS" BASIS,
1111
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
See the License for the specific language governing permissions and
1313
limitations under the License. */
14+
#include <thrust/device_vector.h>
1415
#include <thrust/for_each.h>
16+
#include <thrust/host_vector.h>
1517
#include <thrust/tuple.h>
1618
#include "paddle/fluid/framework/op_registry.h"
1719
#include "paddle/fluid/operators/modified_huber_loss_op.h"

paddle/fluid/operators/trace_op.cu

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
#include <thrust/device_vector.h>
16+
#include <thrust/host_vector.h>
1517
#include "paddle/fluid/operators/reduce_ops/cub_reduce.h"
1618
#include "paddle/fluid/operators/trace_op.h"
1719

paddle/fluid/operators/truncated_gaussian_random_op.cu

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
See the License for the specific language governing permissions and
1313
limitations under the License. */
1414

15+
#include <thrust/device_vector.h>
16+
#include <thrust/host_vector.h>
1517
#include <thrust/random.h>
1618
#include <thrust/transform.h>
1719
#include <limits>
1820
#include "paddle/fluid/framework/generator.h"
1921
#include "paddle/fluid/framework/op_registry.h"
2022
#include "paddle/fluid/framework/operator.h"
23+
#include "paddle/fluid/operators/truncated_gaussian_random_op.h"
2124

2225
namespace paddle {
2326
namespace operators {

paddle/fluid/operators/uniform_random_op.cu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ distributed under the License is distributed on an "AS IS" BASIS,
1111
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
See the License for the specific language governing permissions and
1313
limitations under the License. */
14+
#include <thrust/device_vector.h>
15+
#include <thrust/host_vector.h>
1416
#include <thrust/random.h>
1517
#include <thrust/transform.h>
16-
1718
#include "paddle/fluid/framework/generator.h"
1819
#include "paddle/fluid/framework/op_registry.h"
1920
#include "paddle/fluid/framework/operator.h"

0 commit comments

Comments
 (0)