Compile any of the 2 versions with nvcc: nvcc -o Susan_.cu Run the example using "-p" and "-3" as input arguments: ./ lena.pgm .pgm -p -3