UNPKG

superaugment

Version:

Enterprise-grade MCP server with world-class C++ analysis, robust error handling, and production-ready architecture for VS Code Augment

110 lines 3.74 kB
/** * CUDA Analysis Tool * * Specialized tool for analyzing CUDA C/C++ code including kernels, * memory management, performance optimization, and BSGS algorithm analysis. */ import { z } from 'zod'; import { BaseTool, type ToolExecutionContext, type ToolExecutionResult } from '../BaseTool.js'; import { ConfigManager } from '../../config/ConfigManager.js'; /** * CUDA Analysis Tool */ export declare class CudaAnalysisTool extends BaseTool { readonly name = "analyze_cuda"; readonly description = "Comprehensive CUDA C/C++ code analysis including kernels, memory, performance, and BSGS algorithm optimization"; readonly inputSchema: z.ZodObject<{ path: z.ZodString; analyzeKernels: z.ZodDefault<z.ZodBoolean>; analyzeMemory: z.ZodDefault<z.ZodBoolean>; analyzePerformance: z.ZodDefault<z.ZodBoolean>; analyzeBsgs: z.ZodDefault<z.ZodBoolean>; computeCapability: z.ZodDefault<z.ZodString>; maxRegisters: z.ZodDefault<z.ZodNumber>; sharedMemorySize: z.ZodDefault<z.ZodNumber>; occupancyThreshold: z.ZodDefault<z.ZodNumber>; coalescingThreshold: z.ZodDefault<z.ZodNumber>; includeOptimizations: z.ZodDefault<z.ZodBoolean>; verboseOutput: z.ZodDefault<z.ZodBoolean>; includeHeaders: z.ZodDefault<z.ZodBoolean>; excludePatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { path: string; includeHeaders: boolean; excludePatterns: string[]; verboseOutput: boolean; analyzeKernels: boolean; analyzeMemory: boolean; analyzePerformance: boolean; analyzeBsgs: boolean; computeCapability: string; maxRegisters: number; sharedMemorySize: number; occupancyThreshold: number; coalescingThreshold: number; includeOptimizations: boolean; }, { path: string; includeHeaders?: boolean | undefined; excludePatterns?: string[] | undefined; verboseOutput?: boolean | undefined; analyzeKernels?: boolean | undefined; analyzeMemory?: boolean | undefined; analyzePerformance?: boolean | undefined; analyzeBsgs?: boolean | undefined; computeCapability?: string | undefined; maxRegisters?: number | undefined; sharedMemorySize?: number | undefined; occupancyThreshold?: number | undefined; coalescingThreshold?: number | undefined; includeOptimizations?: boolean | undefined; }>; private fileSystemManager; private cudaAnalyzer; constructor(configManager: ConfigManager); /** * Execute CUDA analysis */ protected executeInternal(args: Record<string, any>, context: ToolExecutionContext): Promise<ToolExecutionResult>; /** * Find CUDA files to analyze */ private findCudaFiles; /** * Check if file contains CUDA code */ private containsCudaCode; /** * Check if file should be excluded */ private shouldExcludeFile; /** * Generate comprehensive CUDA report */ private generateCudaReport; /** * Calculate grade based on overall score */ private calculateGrade; /** * Create empty report */ private createEmptyReport; /** * Aggregate performance bottlenecks */ private aggregateBottlenecks; /** * Aggregate BSGS recommendations */ private aggregateBsgsRecommendations; /** * Format standard response */ private formatStandardResponse; /** * Format verbose response (placeholder) */ private formatVerboseResponse; } //# sourceMappingURL=CudaAnalysisTool.d.ts.map