Compare commits
	
		
			1 Commits
		
	
	
		
			0d888edc52
			...
			4-interpre
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 278a493595 | 
| @ -60,7 +60,7 @@ 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 | 	operationStack = MVector{MAX_STACK_SIZE, Float32}(undef) # Try to get this to function with variable size too, to allow better memory usage | ||||||
| 	operationStackTop = 0i32 # stores index of the last defined/valid value | 	operationStackTop = 0i32 # stores index of the last defined/valid value | ||||||
| 	 | 	 | ||||||
| 	@inbounds firstVariableIndex = ((varSetIndex-1i32) * stepsize[2]) # Exclusive | 	@inbounds firstVariableIndex = ((varSetIndex - 1i32) * stepsize[2]) # Exclusive | ||||||
| 	 | 	 | ||||||
| 	@inbounds for expr in expressions | 	@inbounds for expr in expressions | ||||||
| 		if expr.Type == EMPTY | 		if expr.Type == EMPTY | ||||||
|  | |||||||
| @ -4,7 +4,7 @@ using BenchmarkTools | |||||||
| using .Transpiler | using .Transpiler | ||||||
| using .Interpreter | using .Interpreter | ||||||
|  |  | ||||||
| const BENCHMARKS_RESULTS_PATH = "./results" | const BENCHMARKS_RESULTS_PATH = "./results-fh" | ||||||
| exprsCPU = [ | exprsCPU = [ | ||||||
| 	# CPU interpreter requires an anonymous function and array ref s | 	# CPU interpreter requires an anonymous function and array ref s | ||||||
| 	:(p[1] * x[1] + p[2]), # 5 op | 	:(p[1] * x[1] + p[2]), # 5 op | ||||||
|  | |||||||
							
								
								
									
										1
									
								
								package/test/results-fh/4-interpreter_using_int32.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								package/test/results-fh/4-interpreter_using_int32.json
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Reference in New Issue
	
	Block a user
	