lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


The workaround has allowed me to forge ahead while waiting on the .gov bureaucracy (thanks, Mike!). However, running my code with luajit -O (as opposed to plain luajit) gives the following, but does not impair the running of the program - I infer this means that the optimizer was turned off:

ERROR: jit.opt disabled: /usr/local/share/lua/5.1/jit/opt_lib.lua:190: attempt to perform arithmetic on field 'INLINE_IDX' (a nil value)


Jim Mellander wrote:
Thanks for the info, I'll try it.

You ain't seen bureaucracies until you've seen a .gov bureaucracy! Your workaround should get me by while waiting for the wheels of government bureaucracy to laboriously turn over, or until they gum up completely....


Mike Pall wrote:

Hi,

Jim Mellander wrote:

I would prefer to take the performance hit by sinking back into the pre-SSE days. I didn't see any option for disabling the use of SSE in the Luajit code - can this be done via a define?



Workaround: redefine JIT_F_CPU_SSE2 in src/ljit.h to 0.


Alternatively, is there some way to detect that although the CPU supports SSE, the kernel doesn't, and dynamically disable that code under the circumstances?



The CPUID detection is in fact designed to do exactly this (to
benefit older operating systems). But apparently FreeBSD 4.x
doesn't play by the rules if the option is disabled. AFAIK it has
been fixed in newer versions.


However, this is a production kernel, for which any changes need to go
thru a time-consuming QA process, as well as requiring me to run the
gauntlet of fascist system administration :-(



Never surrender to bureaucracies. Queue one change request now
and get what you need in a few months. Queue three change
requests every day and within two weeks you get your own box.

Bye,
     Mike



--
Jim Mellander
Incident Response Manager
Computer Protection Program
Lawrence Berkeley National Laboratory
(510) 486-7204

Your fortune for today is:

The eyes of taxes are upon you.