spiral-software / spiral-package-fftx

FFTX Package
Other
2 stars 7 forks source link

new opts derivation for Franz #66

Closed sr7cb closed 1 year ago

sr7cb commented 1 year ago

When I try to Load(fftx) using the develop branch it complains about

Class(WarpXCUDADeviceOpts, FFTXCUDADeviceOpts, rec(
#    tags := [ASIMTKernelFlag(ASIMTGridDimY), ASIMTBlockDimX, ASIMTLoopDim() ],
#    tags := [ASIMTGridDimX, ASIMTBlockDimX, ASIMTKernelFlag(ASIMTLoopDim()) ],
#    tags := [ASIMTBlockDimZ, ASIMTKernelFlag(ASIMTBlockDimX), ASIMTKernelFlag(ASIMTBlockDimY) ],
    tags := [ASIMTKernelFlag(ASIMTGridDimY), ASIMTGridDimX, ASIMTBlockDimZ],

    operations := rec(Print := s -> Print("<FFTX WarpX CUDA Device options record>"))    
));

This doesn't happen when using the main branch so I was able to do testing using the cudea/examples directory, but I have not tested the opts_derivation using the develop branch.

broderickpt commented 1 year ago

Using this new version leads to many failed tests when running the spiral self tests. E.g., (examples/library-c/mddft-batch.g):

spiral> Load(fftx); Syntax error: warning, undefined global variable (symbol: 'FFTXCUDADeviceDefaultConf') in ../bin/../namespaces/packages/fftx/platforms/hip/opts.gi line 34 getOpts := (self, t) >> doHIPify(ParseOptsCUDA(FFTXCUDADeviceDefaultConf, t)), ^ [[ while reading ../bin/../namespaces/packages/fftx/knowledgebase/warpx_cuda.gi:16 ]] Error, Variable: 'FFTXCUDADeviceOpts' must have a value in [[ while reading stdin:7 ]] Error, No package on top of stack