FUnixPlatformMemory::GetLLMAllocFunctions

LLM uses these low level functions (LLMAlloc and LLMFree) to allocate memory.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Unix/UnixPlatformMemory.h

Include

#include "Unix/UnixPlatformMemory.h"

Source

/Engine/Source/Runtime/Core/Private/Unix/UnixPlatformMemory.cpp

Syntax

static bool GetLLMAllocFunctions
(
    void *(*&)(size_t) OutAllocFunction,
    void *, size_t) OutFreeFunction,
    int32 & OutAlignment
)

Remarks

LLM uses these low level functions (LLMAlloc and LLMFree) to allocate memory. It grabs the function pointers by calling FPlatformMemory::GetLLMAllocFunctions. If these functions are not implemented GetLLMAllocFunctions should return false and LLM will be disabled.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss