2 Commits

Author SHA1 Message Date
094f8c9499 Merge branch 'main' of https://github.com/daniwipes/master-thesis
Some checks are pending
CI / Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} (x64, ubuntu-latest, 1.10) (push) Waiting to run
CI / Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} (x64, ubuntu-latest, 1.6) (push) Waiting to run
CI / Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} (x64, ubuntu-latest, pre) (push) Waiting to run
2025-01-04 10:40:26 +01:00
a97b804530 testing interpreter because loop seems to do everything. Can't test right now because I don't have a nvidia gpu in my laptop 2024-12-11 11:29:54 +01:00

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