small cleanup
Some checks failed
CI / Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} (x64, ubuntu-latest, 1.10) (push) Has been cancelled
CI / Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} (x64, ubuntu-latest, 1.6) (push) Has been cancelled
CI / Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} (x64, ubuntu-latest, pre) (push) Has been cancelled

This commit is contained in:
2025-01-26 10:16:23 +01:00
parent 7598c51df8
commit 4afc15a737
3 changed files with 10 additions and 74 deletions

View File

@ -25,6 +25,14 @@ using ..ExpressionProcessing
const Operand = Union{Float32, String} # Operand is either fixed value or register
function evaluate(expression::ExpressionProcessing.PostfixType, variables::Matrix{Float32}, parameters::Vector{Vector{Float32}})
# TODO: think of how to do this. Probably get all expressions. Transpile them in parallel and then execute the generatd code.
cudaVars = CuArray(variables)
#kernel = transpile(expression, )
# execute kernel.
end
# To increase performance, it would probably be best for all helper functions to return their IO Buffer and not a string
# seekstart(buf1); write(buf2, buf1)
function transpile(expression::ExpressionProcessing.PostfixType, varSetSize::Integer, paramSetSize::Integer)::String