this function creates a RAM disk on Mac. it can be used for debug output, in case you want to have it faster or don't want to stress your SSD if the volume is already there, nothing is created keep in mind that RAM disks disappear after sleep or power off, so only use it as a debug output.
function util.createMacRAMDisk(
name, sizeMB)
os.execute("
if [ ! -e \"/Volumes/"..
name.."\" ]; then\n"..
"echo \"Creating ug4 RAM Disk with "..sizeMB.." MB..\"\n"..
"diskutil erasevolume HFS+ '"..
name.."' `hdiutil attach -nomount ram:
"echo \"Access the RamDisk in /Volumes/"..
name.."\"\n"..
"fi\n")
end
end
location name
Definition: checkpoint_util.lua:128
function ug_assert(condition, msg)
string GetOperatingSystem()
Definition: misc_bridge.cpp:466
void SynchronizeProcesses()
Definition: pcl_util.cpp:48
int ProcRank()
returns the rank of the process
Definition: pcl_base.cpp:83
if(!(yy_init))
Definition: lexer.cpp:997