Dateien
rocm-systems/rocclr/runtime/device/rocm/pro/lnxheaders.h
T
foreman 6b7cd4c5ad P4 to Git Change 1938683 by gandryey@gera-hip-lnx on 2019/07/03 11:20:14
SWDEV-79445 - OCL generic changes and code clean-up
	- Remove old header

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/pro/lnxheaders.h#3 edit
2019-07-03 10:24:10 -05:00

31 Zeilen
670 B
C++

//
// Copyright (c) 2017 Advanced Micro Devices, Inc. All rights reserved.
//
#pragma once
// NOTE: Some of the Linux driver stack's headers don't wrap their C-style interface names in 'extern "C" { ... }'
// blocks when building with a C++ compiler, so we need to add that ourselves.
#if __cplusplus
extern "C"
{
#endif
#include <amdgpu.h>
#include <amdgpu_drm.h>
#include <xf86drm.h>
#include <xf86drmMode.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <dlfcn.h>
constexpr int32_t InvalidFd = -1; // value representing a invalid file descriptor for Linux
#if __cplusplus
} // extern "C"
#endif