testing interpreter because loop seems to do everything. Can't test right now because I don't have a nvidia gpu in my laptop

This commit is contained in:
Daniel Wiplinger 2024-12-11 11:29:54 +01:00
parent 8d129dbfcc
commit a97b804530

View File

@ -49,7 +49,10 @@ function interpret_expression(expressions::CuDeviceArray{ExpressionElement}, var
operationStack = MVector{MAX_STACK_SIZE, Float32}(undef) # Try to get this to function with variable size too, to allow better memory usage
operationStackTop = 0 # stores index of the last defined/valid value
for varSetIndex in index:stride
@cuprintln("before loop")
for varSetIndex in index:stride:length(expressions)
@cuprintln("in loop with index '$varSetIndex'")
firstVariableIndex = ((varSetIndex - 1) * stepsize[3]) # Exclusive
for i in firstExprIndex:lastExprIndex