You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example generates a high-performance Dagger.jl implementation in Julia for solving sparse linear systems using an LU-based method with iterative refinement.
@@ -81,18 +83,64 @@ function ls_cuda_dev_prompt_maker(fn_str)
81
83
" Assume that LinearAlgebra and SparseArrays is already imported."
82
84
end
83
85
86
+
functionls_dagger_dev_prompt_maker(fn_str)
87
+
return"You are a numerical linear algebra expert, and an expert Julia programmer. You are very experienced in GPU programming using CUDA."*
88
+
" The user will ask you to generate a function and use the following code the check if your solution is accurate and fast."*
89
+
" Make sure the code you produce uses Dagger."*
90
+
" Here is the code: \n"* fn_str *"\nOnly return the function. Make sure the function name is proposed_fn. Do not return extra text."*
91
+
" Assume that LinearAlgebra and SparseArrays is already imported."*
92
+
" Assume that Dagger is already imported."*
93
+
" Use the following Dagger.jl documentation: https://juliaparallel.org/Dagger.jl/dev/"*
94
+
" Use the following Dagger.jl implementation of Cholesky as an example: https://github.com/JuliaParallel/Dagger.jl/blob/67211816781d59109d74940550ca2d80af96b13d/src/array/cholesky.jl"
95
+
end
96
+
84
97
src_dir =@__DIR__
85
98
86
-
functiongen_linear_solver(prompt, secret_key, checker_filename = src_dir *"/test_performance.jl", model ="gpt-5-mini"; max_iters =10)
0 commit comments