mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-08-27 12:46:13 +00:00
Better reporting of unrecognized tokens
This commit is contained in:
parent
7ba1586d6c
commit
0ca14d740f
6 changed files with 461 additions and 27 deletions
|
@ -1,9 +1,21 @@
|
|||
use std::env::VarError;
|
||||
use std::{env, path::PathBuf};
|
||||
|
||||
fn main() -> Result<(), VarError> {
|
||||
println!("cargo:rustc-link-lib=dylib=amdhip64");
|
||||
//println!("cargo:rustc-link-search=native=/opt/rocm/lib/");
|
||||
println!("cargo:rustc-link-search=native=/home/ubuntu/hipamd/build/lib");
|
||||
println!("cargo:rustc-link-search=native=/home/vosen/hipamd/build/lib");
|
||||
if cfg!(windows) {
|
||||
let env = env::var("CARGO_CFG_TARGET_ENV")?;
|
||||
if env == "msvc" {
|
||||
let mut path = PathBuf::from(env::var("CARGO_MANIFEST_DIR")?);
|
||||
path.push("lib");
|
||||
println!("cargo:rustc-link-search=native={}", path.display());
|
||||
} else {
|
||||
println!("cargo:rustc-link-search=native=C:\\Windows\\System32");
|
||||
};
|
||||
} else {
|
||||
//println!("cargo:rustc-link-search=native=/opt/rocm/lib/");
|
||||
println!("cargo:rustc-link-search=native=/home/ubuntu/hipamd/build/lib");
|
||||
println!("cargo:rustc-link-search=native=/home/vosen/hipamd/build/lib");
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
308
hip_runtime-sys/lib/amdhip64.def
Normal file
308
hip_runtime-sys/lib/amdhip64.def
Normal file
|
@ -0,0 +1,308 @@
|
|||
LIBRARY AMDHIP64
|
||||
EXPORTS
|
||||
__hipPopCallConfiguration
|
||||
__hipPushCallConfiguration
|
||||
__hipRegisterFatBinary
|
||||
__hipRegisterFunction
|
||||
__hipRegisterManagedVar
|
||||
__hipRegisterSurface
|
||||
__hipRegisterTexture
|
||||
__hipRegisterVar
|
||||
__hipUnregisterFatBinary
|
||||
hipApiName
|
||||
hipArray3DCreate
|
||||
hipArrayCreate
|
||||
hipArrayDestroy
|
||||
hipBindTexture
|
||||
hipBindTexture2D
|
||||
hipBindTextureToArray
|
||||
hipBindTextureToMipmappedArray
|
||||
hipChooseDevice
|
||||
hipConfigureCall
|
||||
hipCreateChannelDesc
|
||||
hipCreateSurfaceObject
|
||||
hipCreateTextureObject
|
||||
hipCtxCreate
|
||||
hipCtxDestroy
|
||||
hipCtxDisablePeerAccess
|
||||
hipCtxEnablePeerAccess
|
||||
hipCtxGetApiVersion
|
||||
hipCtxGetCacheConfig
|
||||
hipCtxGetCurrent
|
||||
hipCtxGetDevice
|
||||
hipCtxGetFlags
|
||||
hipCtxGetSharedMemConfig
|
||||
hipCtxPopCurrent
|
||||
hipCtxPushCurrent
|
||||
hipCtxSetCacheConfig
|
||||
hipCtxSetCurrent
|
||||
hipCtxSetSharedMemConfig
|
||||
hipCtxSynchronize
|
||||
hipDestroyExternalMemory
|
||||
hipDestroyExternalSemaphore
|
||||
hipDestroySurfaceObject
|
||||
hipDestroyTextureObject
|
||||
hipDeviceCanAccessPeer
|
||||
hipDeviceComputeCapability
|
||||
hipDeviceDisablePeerAccess
|
||||
hipDeviceEnablePeerAccess
|
||||
hipDeviceGet
|
||||
hipDeviceGetAttribute
|
||||
hipDeviceGetByPCIBusId
|
||||
hipDeviceGetCacheConfig
|
||||
hipDeviceGetLimit
|
||||
hipDeviceGetName
|
||||
hipDeviceGetP2PAttribute
|
||||
hipDeviceGetPCIBusId
|
||||
hipDeviceGetSharedMemConfig
|
||||
hipDeviceGetStreamPriorityRange
|
||||
hipDevicePrimaryCtxGetState
|
||||
hipDevicePrimaryCtxRelease
|
||||
hipDevicePrimaryCtxReset
|
||||
hipDevicePrimaryCtxRetain
|
||||
hipDevicePrimaryCtxSetFlags
|
||||
hipDeviceReset
|
||||
hipDeviceSetCacheConfig
|
||||
hipDeviceSetSharedMemConfig
|
||||
hipDeviceSynchronize
|
||||
hipDeviceTotalMem
|
||||
hipDriverGetVersion
|
||||
hipDrvMemcpy2DUnaligned
|
||||
hipDrvMemcpy3D
|
||||
hipDrvMemcpy3DAsync
|
||||
hipEnableActivityCallback
|
||||
hipEventCreate
|
||||
hipEventCreateWithFlags
|
||||
hipEventDestroy
|
||||
hipEventElapsedTime
|
||||
hipEventQuery
|
||||
hipEventRecord
|
||||
hipEventSynchronize
|
||||
hipExtGetLinkTypeAndHopCount
|
||||
hipExtLaunchKernel
|
||||
hipExtLaunchMultiKernelMultiDevice
|
||||
hipExtMallocWithFlags
|
||||
hipExtModuleLaunchKernel
|
||||
hipExtStreamCreateWithCUMask
|
||||
hipExtStreamGetCUMask
|
||||
hipExternalMemoryGetMappedBuffer
|
||||
hipFree
|
||||
hipFreeArray
|
||||
hipFreeHost
|
||||
hipFreeMipmappedArray
|
||||
hipFuncGetAttribute
|
||||
hipFuncGetAttributes
|
||||
hipFuncSetAttribute
|
||||
hipFuncSetCacheConfig
|
||||
hipFuncSetSharedMemConfig
|
||||
hipGLGetDevices
|
||||
hipGetChannelDesc
|
||||
hipGetCmdName
|
||||
hipGetDevice
|
||||
hipGetDeviceCount
|
||||
hipGetDeviceFlags
|
||||
hipGetDeviceProperties
|
||||
hipGetErrorName
|
||||
hipGetErrorString
|
||||
hipGetLastError
|
||||
hipGetMipmappedArrayLevel
|
||||
hipGetSymbolAddress
|
||||
hipGetSymbolSize
|
||||
hipGetTextureAlignmentOffset
|
||||
hipGetTextureObjectResourceDesc
|
||||
hipGetTextureObjectResourceViewDesc
|
||||
hipGetTextureObjectTextureDesc
|
||||
hipGetTextureReference
|
||||
hipGraphAddDependencies
|
||||
hipGraphAddEmptyNode
|
||||
hipGraphAddKernelNode
|
||||
hipGraphAddMemcpyNode
|
||||
hipGraphAddMemcpyNode1D
|
||||
hipGraphAddMemsetNode
|
||||
hipGraphCreate
|
||||
hipGraphDestroy
|
||||
hipGraphExecDestroy
|
||||
hipGraphExecKernelNodeSetParams
|
||||
hipGraphGetNodes
|
||||
hipGraphGetRootNodes
|
||||
hipGraphInstantiate
|
||||
hipGraphKernelNodeGetParams
|
||||
hipGraphKernelNodeSetParams
|
||||
hipGraphLaunch
|
||||
hipGraphMemcpyNodeGetParams
|
||||
hipGraphMemcpyNodeSetParams
|
||||
hipGraphMemsetNodeGetParams
|
||||
hipGraphMemsetNodeSetParams
|
||||
hipGraphicsGLRegisterBuffer
|
||||
hipGraphicsMapResources
|
||||
hipGraphicsResourceGetMappedPointer
|
||||
hipGraphicsUnmapResources
|
||||
hipGraphicsUnregisterResource
|
||||
hipHccModuleLaunchKernel
|
||||
hipHostAlloc
|
||||
hipHostFree
|
||||
hipHostGetDevicePointer
|
||||
hipHostGetFlags
|
||||
hipHostMalloc
|
||||
hipHostRegister
|
||||
hipHostUnregister
|
||||
hipImportExternalMemory
|
||||
hipImportExternalSemaphore
|
||||
hipInit
|
||||
hipInitActivityCallback
|
||||
hipIpcCloseMemHandle
|
||||
hipIpcGetEventHandle
|
||||
hipIpcGetMemHandle
|
||||
hipIpcOpenEventHandle
|
||||
hipIpcOpenMemHandle
|
||||
hipKernelNameRef
|
||||
hipLaunchByPtr
|
||||
hipLaunchCooperativeKernel
|
||||
hipLaunchCooperativeKernelMultiDevice
|
||||
hipLaunchKernel
|
||||
hipMalloc
|
||||
hipMalloc3D
|
||||
hipMalloc3DArray
|
||||
hipMallocArray
|
||||
hipMallocHost
|
||||
hipMallocManaged
|
||||
hipMallocMipmappedArray
|
||||
hipMallocPitch
|
||||
hipMemAdvise
|
||||
hipMemAllocHost
|
||||
hipMemAllocPitch
|
||||
hipMemGetAddressRange
|
||||
hipMemGetInfo
|
||||
hipMemPrefetchAsync
|
||||
hipMemPtrGetInfo
|
||||
hipMemRangeGetAttribute
|
||||
hipMemRangeGetAttributes
|
||||
hipMemcpy
|
||||
hipMemcpy2D
|
||||
hipMemcpy2DAsync
|
||||
hipMemcpy2DFromArray
|
||||
hipMemcpy2DFromArrayAsync
|
||||
hipMemcpy2DToArray
|
||||
hipMemcpy2DToArrayAsync
|
||||
hipMemcpy3D
|
||||
hipMemcpy3DAsync
|
||||
hipMemcpyAsync
|
||||
hipMemcpyAtoH
|
||||
hipMemcpyDtoD
|
||||
hipMemcpyDtoDAsync
|
||||
hipMemcpyDtoH
|
||||
hipMemcpyDtoHAsync
|
||||
hipMemcpyFromArray
|
||||
hipMemcpyFromSymbol
|
||||
hipMemcpyFromSymbolAsync
|
||||
hipMemcpyHtoA
|
||||
hipMemcpyHtoD
|
||||
hipMemcpyHtoDAsync
|
||||
hipMemcpyParam2D
|
||||
hipMemcpyParam2DAsync
|
||||
hipMemcpyPeer
|
||||
hipMemcpyPeerAsync
|
||||
hipMemcpyToArray
|
||||
hipMemcpyToSymbol
|
||||
hipMemcpyToSymbolAsync
|
||||
hipMemcpyWithStream
|
||||
hipMemset
|
||||
hipMemset2D
|
||||
hipMemset2DAsync
|
||||
hipMemset3D
|
||||
hipMemset3DAsync
|
||||
hipMemsetAsync
|
||||
hipMemsetD16
|
||||
hipMemsetD16Async
|
||||
hipMemsetD32
|
||||
hipMemsetD32Async
|
||||
hipMemsetD8
|
||||
hipMemsetD8Async
|
||||
hipMipmappedArrayCreate
|
||||
hipMipmappedArrayDestroy
|
||||
hipMipmappedArrayGetLevel
|
||||
hipModuleGetFunction
|
||||
hipModuleGetGlobal
|
||||
hipModuleGetTexRef
|
||||
hipModuleLaunchKernel
|
||||
hipModuleLaunchKernelExt
|
||||
hipModuleLoad
|
||||
hipModuleLoadData
|
||||
hipModuleLoadDataEx
|
||||
hipModuleOccupancyMaxActiveBlocksPerMultiprocessor
|
||||
hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
|
||||
hipModuleOccupancyMaxPotentialBlockSize
|
||||
hipModuleOccupancyMaxPotentialBlockSizeWithFlags
|
||||
hipModuleUnload
|
||||
hipOccupancyMaxActiveBlocksPerMultiprocessor
|
||||
hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
|
||||
hipOccupancyMaxPotentialBlockSize
|
||||
hipPeekAtLastError
|
||||
hipPointerGetAttributes
|
||||
hipProfilerStart
|
||||
hipProfilerStop
|
||||
hipRegisterActivityCallback
|
||||
hipRegisterApiCallback
|
||||
hipRemoveActivityCallback
|
||||
hipRemoveApiCallback
|
||||
hipRuntimeGetVersion
|
||||
hipSetDevice
|
||||
hipSetDeviceFlags
|
||||
hipSetupArgument
|
||||
hipSignalExternalSemaphoresAsync
|
||||
hipStreamAddCallback
|
||||
hipStreamAttachMemAsync
|
||||
hipStreamBeginCapture
|
||||
hipStreamCreate
|
||||
hipStreamCreateWithFlags
|
||||
hipStreamCreateWithPriority
|
||||
hipStreamDestroy
|
||||
hipStreamEndCapture
|
||||
hipStreamGetFlags
|
||||
hipStreamGetPriority
|
||||
hipStreamIsCapturing
|
||||
hipStreamQuery
|
||||
hipStreamSynchronize
|
||||
hipStreamWaitEvent
|
||||
hipTexObjectCreate
|
||||
hipTexObjectDestroy
|
||||
hipTexObjectGetResourceDesc
|
||||
hipTexObjectGetResourceViewDesc
|
||||
hipTexObjectGetTextureDesc
|
||||
hipTexRefGetAddress
|
||||
hipTexRefGetAddressMode
|
||||
hipTexRefGetArray
|
||||
hipTexRefGetBorderColor
|
||||
hipTexRefGetFilterMode
|
||||
hipTexRefGetFlags
|
||||
hipTexRefGetFormat
|
||||
hipTexRefGetMaxAnisotropy
|
||||
hipTexRefGetMipmapFilterMode
|
||||
hipTexRefGetMipmapLevelBias
|
||||
hipTexRefGetMipmapLevelClamp
|
||||
hipTexRefGetMipmappedArray
|
||||
hipTexRefSetAddress
|
||||
hipTexRefSetAddress2D
|
||||
hipTexRefSetAddressMode
|
||||
hipTexRefSetArray
|
||||
hipTexRefSetBorderColor
|
||||
hipTexRefSetFilterMode
|
||||
hipTexRefSetFlags
|
||||
hipTexRefSetFormat
|
||||
hipTexRefSetMaxAnisotropy
|
||||
hipTexRefSetMipmapFilterMode
|
||||
hipTexRefSetMipmapLevelBias
|
||||
hipTexRefSetMipmapLevelClamp
|
||||
hipTexRefSetMipmappedArray
|
||||
hipUnbindTexture
|
||||
hipWaitExternalSemaphoresAsync
|
||||
hiprtcAddNameExpression
|
||||
hiprtcCompileProgram
|
||||
hiprtcCreateProgram
|
||||
hiprtcDestroyProgram
|
||||
hiprtcGetCode
|
||||
hiprtcGetCodeSize
|
||||
hiprtcGetErrorString
|
||||
hiprtcGetLoweredName
|
||||
hiprtcGetProgramLog
|
||||
hiprtcGetProgramLogSize
|
BIN
hip_runtime-sys/lib/amdhip64.lib
Normal file
BIN
hip_runtime-sys/lib/amdhip64.lib
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue