Skip to content

Commit ec87d2e

Browse files
committed
Added option for gpu matrices
1 parent 3e4a204 commit ec87d2e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/DeRham.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ using BitIntegers
55
using LinearAlgebra
66
using Combinatorics
77
using Memoize
8+
# using GPUFiniteFieldMatrices
9+
# Pkg.add(url="https://github.com/UCSD-computational-number-theory/GPUFiniteFieldMatrices.jl")
810

911
# comment this out when not debugging
1012
#using Debugger

src/ZetaFunction.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ struct ZetaFunctionParams
2828
vars_reversed::Bool
2929
fastevaluation::Bool
3030
always_use_bigints::Bool
31+
use_gpu::Bool
3132
end
3233

33-
default_params() = ZetaFunctionParams(false,false,:costachunks,:invlex,true,false,false)
34+
default_params() = ZetaFunctionParams(false,false,:costachunks,:invlex,true,false,false,false)
3435

3536
"""
3637
compute_frobenius_matrix(n,d,Reductions,T)
@@ -269,7 +270,7 @@ vars_reversed -- reverses the order of basis vectors at various places
269270
>>>if you don't know what this is, ignore it.
270271
271272
"""
272-
function zeta_function(f; S=[-1], verbose=false, givefrobmat=false, algorithm=:costachunks, termorder=:invlex, vars_reversed=true, fastevaluation=false, always_use_bigints=false)
273+
function zeta_function(f; S=[-1], verbose=false, givefrobmat=false, algorithm=:costachunks, termorder=:invlex, vars_reversed=true, fastevaluation=false, always_use_bigints=false, use_gpu=false)
273274
p = Int64(characteristic(parent(f)))
274275
q = p
275276
n = nvars(parent(f)) - 1
@@ -281,7 +282,7 @@ function zeta_function(f; S=[-1], verbose=false, givefrobmat=false, algorithm=:c
281282
d = total_degree(f)
282283
R = coefficient_ring(PR)
283284

284-
params = ZetaFunctionParams(verbose,givefrobmat,algorithm,termorder,vars_reversed,fastevaluation,always_use_bigints)
285+
params = ZetaFunctionParams(verbose,givefrobmat,algorithm,termorder,vars_reversed,fastevaluation,always_use_bigints,use_gpu)
285286

286287
(9 < verbose) && println("Working with a degree $d hypersurface in P^$n")
287288

0 commit comments

Comments
 (0)