To build the code, run the following command from inside the "lud" folder:
make clean
makeIn the "lud/tools" folder build the tool using:
makeThen to generate data files run (replace 32 with the desired input size) from inside the "lud" folder:
./tools/gen_input 32This will create a file called 32.dat (or any other number that was used as the input size)
To run the executable lud_cuda, use the following options:
- -c: Use CUSolver. Without it the default Rodinia implementation will be used.
- -v: To verify results of the benchmark. It takes some time to verify with input sizes larger than 8000.
- -s : Pass the input size for the matrix that will be generated for the benchmark. Cannot be used with the -i option.
- -i : Pass a file path containing the matrix on which the LU decomposition will be applied. Cannot be used with the -s option.
For example, to run the executable with CUSolver and verify the results, use the following command:
./lud_cuda -v -c -s 8192