#include <stdio.h>
#include <stdlib.h>
#include <cuda_runtime.h>
#include <sys/time.h>

using namespace std;

// ############### COMMON ###############
#define CHECK(call)                                                        \
{                                                                          \
    const cudaError_t error = call;                                        \
    if (error != cudaSuccess)                                              \
    {                                                                      \
        printf("Error: %s:%d, ", __FILE__, __LINE__);                      \
        printf("code:%d, reason: %s\n", error, cudaGetErrorString(error)); \
        exit(1);                                                           \
    }                                                                      \
}

inline double seconds()
{
    struct timeval tp;
    struct timezone tzp;
    int i = gettimeofday(&tp, &tzp);
    return ((double)tp.tv_sec + (double)tp.tv_usec * 1.e-6);
}

void initialData(double *data, int size)
// Khởi tạo vector ban đầu có kích thước size, kiểu double và giá random trong khoảng [0, 1]
{
    srand(0);
    for (int i = 0; i < size; i++)
    {
        data[i] = (double)(rand()) / RAND_MAX;
    }
}

double sumGPU(double *data, int size){
    double sum = 0;
    for(int i = 0; i < size; i++){
        sum += data[i];
    }

    return sum;
}

// ############### Device(CPU) ###############
// Hàm thực hiện reduce trên CPU
double recursiveReduce(double *data, int const size)
{
    if (size == 1) return data[0];
  
    int const stride = size / 2;
    for (int i = 0; i < stride; i++){
        data[i] += data[i + stride];
    }
    
    return recursiveReduce(data, stride);
}

// ############### Device(GPU) ###############
// Neighbored Pair phân kỳ
__global__ void reduceNeighbored (double *g_idata, double *g_odata,
    unsigned int n)
{
    unsigned int tid = threadIdx.x;
    unsigned int idx = blockIdx.x * blockDim.x + threadIdx.x;

    // Chuyển từ con trỏ toàn cục sang con trỏ của block này
    double *idata = g_idata + blockIdx.x * blockDim.x;

    // Kiểm tra nếu vượt qua kích thước mảng
    if (idx >= n) return;

    // Thực hiện tính tổng ở bộ nhớ toàn cục
    for (int stride = 1; stride < blockDim.x; stride *= 2)
    {
        if ((tid % (2 * stride)) == 0)
        {
            idata[tid] += idata[tid + stride];
        }

        // Đồng bộ hóa trong một threadBlock
        __syncthreads();
    }

    // Ghi kết quả cho block này vào bộ nhớ toàn cục
    if (tid == 0) g_odata[blockIdx.x] = idata[0];
}

// Neighbored Pair cài đặt với ít phân kỳ bằng cách thực thi trong một block
__global__ void reduceNeighboredLess (double *g_idata, double *g_odata,
    unsigned int n)
{
    unsigned int tid = threadIdx.x;
    unsigned int idx = blockIdx.x * blockDim.x + threadIdx.x;

    // Chuyển từ con trỏ toàn cục sang con trỏ của block này
    double *idata = g_idata + blockIdx.x * blockDim.x;

    // Kiểm tra nếu vượt qua kích thước mảng
    if(idx >= n) return;

    // Thực hiện tính tổng ở bộ nhớ toàn cục
    for (int stride = 1; stride < blockDim.x; stride *= 2)
    {
        // Chuyển tid sang bộ nhớ của một block (register - thanh ghi)
        int index = 2 * stride * tid;

        if (index < blockDim.x)
        {
            idata[index] += idata[index + stride];
        }

        // Đồng bộ hóa trong một threadBlock
        __syncthreads();
    }

    // Ghi kết quả cho block này vào bộ nhớ toàn cục
    if (tid == 0) g_odata[blockIdx.x] = idata[0];
}

// Interleaved Pair Implementation with less divergence
__global__ void reduceInterleaved (double *g_idata, double *g_odata, unsigned int n)
{
    unsigned int tid = threadIdx.x;
    unsigned int idx = blockIdx.x * blockDim.x + threadIdx.x;

    // Chuyển từ con trỏ toàn cục sang con trỏ của block này
    double *idata = g_idata + blockIdx.x * blockDim.x;

    // Kiểm tra nếu vượt qua kích thước mảng
    if(idx >= n) return;

    // Thực hiện tính tổng ở bộ nhớ toàn cục
    for (int stride = blockDim.x / 2; stride > 0; stride >>= 1)
    {
        if (tid < stride)
        {
            idata[tid] += idata[tid + stride];
        }

        __syncthreads();
    }

    // Ghi kết quả cho block này vào bộ nhớ toàn cục
    if (tid == 0) g_odata[blockIdx.x] = idata[0];
}

__global__ void reduceUnrolling2 (double *g_idata, double *g_odata,
    unsigned int n)
{
    unsigned int tid = threadIdx.x;
    unsigned int idx = blockIdx.x * blockDim.x * 2 + threadIdx.x;

    // Chuyển từ con trỏ toàn cục sang con trỏ của block này
    double *idata = g_idata + blockIdx.x * blockDim.x * 2;

    // unrolling 2 data blocks
    if (idx + blockDim.x < n) g_idata[idx] += g_idata[idx + blockDim.x];
    // Đồng bộ hóa các group data trong 2 thread kết cận
    __syncthreads();

    // Thực hiện tính tổng ở bộ nhớ toàn cục
    for (int stride = blockDim.x / 2; stride > 0; stride >>= 1)
    {
        if (tid < stride)
        {
            idata[tid] += idata[tid + stride];
        }

        // Đồng bộ hóa trong một threadBlock
        __syncthreads();
    }

    // Ghi kết quả cho block này vào bộ nhớ toàn cục
    if (tid == 0) g_odata[blockIdx.x] = idata[0];
}

__global__ void reduceUnrolling4(double *g_idata, double *g_odata, unsigned int n){
    unsigned int tid = threadIdx.x;
    unsigned int idx = blockIdx.x * blockDim.x * 4 + threadIdx.x;

    // Chuyển từ con trỏ toàn cục sang con trỏ của block này
    double *idata = g_idata + blockIdx.x * blockDim.x * 4;

    // unrolling 4
    if (idx + 3 * blockDim.x < n)
    {
        double a1 = g_idata[idx];
        double a2 = g_idata[idx + blockDim.x];
        double a3 = g_idata[idx + 2 * blockDim.x];
        double a4 = g_idata[idx + 3 * blockDim.x];
        g_idata[idx] = a1 + a2 + a3 + a4;
    }
    __syncthreads(); // Đồng bộ hóa các group data trong 4 thread kết cận

    // Thực hiện tính tổng ở bộ nhớ toàn cục
    for (int stride = blockDim.x / 2; stride > 0; stride >>= 1)
    {
        if (tid < stride)
        {
            idata[tid] += idata[tid + stride];
        }

        // Đồng bộ hóa trong một threadBlock
        __syncthreads();
    }

    // Ghi kết quả cho block này vào bộ nhớ toàn cục
    if (tid == 0) g_odata[blockIdx.x] = idata[0];
}

__global__ void reduceUnrolling8 (double *g_idata, double *g_odata, unsigned int n){
    unsigned int tid = threadIdx.x;
    unsigned int idx = blockIdx.x * blockDim.x * 8 + threadIdx.x;
    double *idata = g_idata + blockIdx.x * blockDim.x * 8;

    // unrolling 8
    if (idx + 7 * blockDim.x < n)
    {
        double a1 = g_idata[idx];
        double a2 = g_idata[idx + blockDim.x];
        double a3 = g_idata[idx + 2 * blockDim.x];
        double a4 = g_idata[idx + 3 * blockDim.x];
        double b1 = g_idata[idx + 4 * blockDim.x];
        double b2 = g_idata[idx + 5 * blockDim.x];
        double b3 = g_idata[idx + 6 * blockDim.x];
        double b4 = g_idata[idx + 7 * blockDim.x];
        g_idata[idx] = a1 + a2 + a3 + a4 + b1 + b2 + b3 + b4;
    }
    __syncthreads(); // Đồng bộ hóa các group data trong 8 thread kết cận

    // Thực hiện tính tổng ở bộ nhớ toàn cục
    for (int stride = blockDim.x / 2; stride > 0; stride >>= 1){
        if (tid < stride){
            idata[tid] += idata[tid + stride];
        }

        // Đồng bộ hóa trong một threadBlock
        __syncthreads();
    }
    if (tid == 0) g_odata[blockIdx.x] = idata[0];
}

__global__ void reduceUnrollWarps8 (double *g_idata, double *g_odata, unsigned int n)
{
    unsigned int tid = threadIdx.x;
    unsigned int idx = blockIdx.x * blockDim.x * 8 + threadIdx.x;
    double *idata = g_idata + blockIdx.x * blockDim.x * 8;

    if (idx + 7 * blockDim.x < n)
    {
        double a1 = g_idata[idx];
        double a2 = g_idata[idx + blockDim.x];
        double a3 = g_idata[idx + 2 * blockDim.x];
        double a4 = g_idata[idx + 3 * blockDim.x];
        double b1 = g_idata[idx + 4 * blockDim.x];
        double b2 = g_idata[idx + 5 * blockDim.x];
        double b3 = g_idata[idx + 6 * blockDim.x];
        double b4 = g_idata[idx + 7 * blockDim.x];
        g_idata[idx] = a1 + a2 + a3 + a4 + b1 + b2 + b3 + b4;
    }
    __syncthreads();

    // Thực hiện tính tổng ở bộ nhớ toàn cục
    for (int stride = blockDim.x / 2; stride > 32; stride >>= 1){
        if (tid < stride){
            idata[tid] += idata[tid + stride];
        }

        // Đồng bộ hóa trong một threadBlock
        __syncthreads();
    }

    // unrolling warp
    if (tid < 32)
    {
        volatile double *vmem = idata;
        vmem[tid] += vmem[tid + 32];
        vmem[tid] += vmem[tid + 16];
        vmem[tid] += vmem[tid +  8];
        vmem[tid] += vmem[tid +  4];
        vmem[tid] += vmem[tid +  2];
        vmem[tid] += vmem[tid +  1];
    }

    if (tid == 0) g_odata[blockIdx.x] = idata[0];
}

__global__ void reduceCompleteUnrollWarps8 (double *g_idata, double *g_odata,
        unsigned int n){
    unsigned int tid = threadIdx.x;
    unsigned int idx = blockIdx.x * blockDim.x * 8 + threadIdx.x;
    double *idata = g_idata + blockIdx.x * blockDim.x * 8;

    if (idx + 7 * blockDim.x < n)
    {
        double a1 = g_idata[idx];
        double a2 = g_idata[idx + blockDim.x];
        double a3 = g_idata[idx + 2 * blockDim.x];
        double a4 = g_idata[idx + 3 * blockDim.x];
        double b1 = g_idata[idx + 4 * blockDim.x];
        double b2 = g_idata[idx + 5 * blockDim.x];
        double b3 = g_idata[idx + 6 * blockDim.x];
        double b4 = g_idata[idx + 7 * blockDim.x];
        g_idata[idx] = a1 + a2 + a3 + a4 + b1 + b2 + b3 + b4;
    }
    __syncthreads(); // Đồng bộ hóa tất cả các thread trong một block

    // in-place reduction and complete unroll
    if (blockDim.x >= 1024 && tid < 512) idata[tid] += idata[tid + 512];
    __syncthreads();

    if (blockDim.x >= 512 && tid < 256) idata[tid] += idata[tid + 256];
    __syncthreads();

    if (blockDim.x >= 256 && tid < 128) idata[tid] += idata[tid + 128];
    __syncthreads();

    if (blockDim.x >= 128 && tid < 64) idata[tid] += idata[tid + 64];
    __syncthreads();

    // unrolling warp
    if (tid < 32)
    {
        volatile double *vsmem = idata;
        vsmem[tid] += vsmem[tid + 32];
        vsmem[tid] += vsmem[tid + 16];
        vsmem[tid] += vsmem[tid +  8];
        vsmem[tid] += vsmem[tid +  4];
        vsmem[tid] += vsmem[tid +  2];
        vsmem[tid] += vsmem[tid +  1];
    }

    // Ghi kết quả cho block này vào bộ nhớ toàn cục
    if (tid == 0) g_odata[blockIdx.x] = idata[0];
}

template <unsigned int iBlockSize>
__global__ void reduceCompleteUnroll(double *g_idata, double *g_odata,
                                     unsigned int n)
{
    unsigned int tid = threadIdx.x;
    unsigned int idx = blockIdx.x * blockDim.x * 8 + threadIdx.x;

    // Chuyển từ con trỏ toàn cục sang con trỏ của block này
    double *idata = g_idata + blockIdx.x * blockDim.x * 8;

    // unrolling 8
    if (idx + 7 * blockDim.x < n)
    {
        double a1 = g_idata[idx];
        double a2 = g_idata[idx + blockDim.x];
        double a3 = g_idata[idx + 2 * blockDim.x];
        double a4 = g_idata[idx + 3 * blockDim.x];
        double b1 = g_idata[idx + 4 * blockDim.x];
        double b2 = g_idata[idx + 5 * blockDim.x];
        double b3 = g_idata[idx + 6 * blockDim.x];
        double b4 = g_idata[idx + 7 * blockDim.x];
        g_idata[idx] = a1 + a2 + a3 + a4 + b1 + b2 + b3 + b4;
    }

    __syncthreads(); // Đồng bộ tất các thread trong một block

    // in-place reduction and complete unroll
    if (iBlockSize >= 1024 && tid < 512) idata[tid] += idata[tid + 512];
    __syncthreads();

    if (iBlockSize >= 512 && tid < 256)  idata[tid] += idata[tid + 256];
    __syncthreads();

    if (iBlockSize >= 256 && tid < 128)  idata[tid] += idata[tid + 128];
    __syncthreads();

    if (iBlockSize >= 128 && tid < 64)   idata[tid] += idata[tid + 64];
    __syncthreads();

    // unrolling warp
    if (tid < 32)
    {
        volatile double *vsmem = idata;
        vsmem[tid] += vsmem[tid + 32];
        vsmem[tid] += vsmem[tid + 16];
        vsmem[tid] += vsmem[tid +  8];
        vsmem[tid] += vsmem[tid +  4];
        vsmem[tid] += vsmem[tid +  2];
        vsmem[tid] += vsmem[tid +  1];
    }

    // Ghi kết quả cho block này vào bộ nhớ toàn cục
    if (tid == 0) g_odata[blockIdx.x] = idata[0];
}

__global__ void reduceUnrollWarps (double *g_idata, double *g_odata, unsigned int n)
{
    unsigned int tid = threadIdx.x;
    unsigned int idx = blockIdx.x * blockDim.x * 2 + threadIdx.x;

    // Chuyển từ con trỏ toàn cục sang con trỏ của block này
    double *idata = g_idata + blockIdx.x * blockDim.x * 2;

    // unrolling 2
    if (idx + blockDim.x < n) g_idata[idx] += g_idata[idx + blockDim.x];

    __syncthreads();

    // Thực hiện tính tổng ở bộ nhớ toàn cục
    for (int stride = blockDim.x / 2; stride > 32; stride >>= 1)
    {
        if (tid < stride)
        {
            idata[tid] += idata[tid + stride];
        }

        // Đồng bộ hóa trong một threadBlock
        __syncthreads();
    }

    // unrolling last warp
    if (tid < 32)
    {
        volatile double *vsmem = idata;
        vsmem[tid] += vsmem[tid + 32];
        vsmem[tid] += vsmem[tid + 16];
        vsmem[tid] += vsmem[tid +  8];
        vsmem[tid] += vsmem[tid +  4];
        vsmem[tid] += vsmem[tid +  2];
        vsmem[tid] += vsmem[tid +  1];
    }

    if (tid == 0) g_odata[blockIdx.x] = idata[0];
}

int main()
{
    printf("############ THÔNG TIN GPU ############\n");
    // Chọn GPU thực thi câu lệnh    
    int dev = 0;
    cudaDeviceProp deviceProp;
    CHECK(cudaGetDeviceProperties(&deviceProp, dev));
    printf("Device %d: %s \n", dev, deviceProp.name);
    CHECK(cudaSetDevice(dev));

    // Khởi tạo kích thước vector
    int size = 1 << 24; // 2^24
    printf("Kích thước mảng : %d\n", size);
    
    // Kernel được cấu hình với 1D grid và 1D blocks
    int const BLOCK_SIZE = 512;
    dim3 block (BLOCK_SIZE, 1); // Block size có kích thước 512 x 1 ~ (x, y)
    dim3 grid  ((size + block.x - 1) / block.x, 1); // Grid size có kích thước ceil(size/block.x)
    printf("Kích thước : <<<Grid (%d, %d), Block (%d, %d)>>>\n", block.x, block.y, grid.x, grid.y);
 
    // Cấp phát bộ nhớ trên host (CPU)
    size_t bytes = size * sizeof(double);
    double *h_idata = (double *) malloc(bytes); // host input data
    double *h_odata = (double *) malloc(grid.x * sizeof(double)); // host output data
    double *temp    = (double *) malloc(bytes); // vùng nhớ tạp để copy input cho nhiều hàm thực thi khác nhau
 
    initialData(h_idata, size);
    // Copy vào biến temp để chạy với CPU
    memcpy (temp, h_idata, bytes);
 
    // Biến tính thời gian chạy
    double iStart, iElaps;
    double gpu_sum = 0.0; // hàm tính tổng kết quả trên GPU
    double gpu_bytes = grid.x * sizeof(double);

    // Cấp phát bộ nhớ trên device (GPU)
    double *d_idata = NULL;
    double *d_odata = NULL;
    CHECK(cudaMalloc(&d_idata, bytes));
    CHECK(cudaMalloc(&d_odata, gpu_bytes));
 
    printf("ID| Time \t\t| Sum result \t\t| <<<GridSize, BlockSize >>> | Kernel\t\t\n");
    // ############ 1. CPU #############
    iStart = seconds();
    double cpu_sum = recursiveReduce (temp, size);
    iElaps = seconds() - iStart;
    printf("1 | %f sec\t| %f\t|\t\t | recursiveReduce-CPU\n", iElaps, cpu_sum);

    // ############ 2. reduceNeighbored ############
    CHECK(cudaMemcpy(d_idata, h_idata, bytes, cudaMemcpyHostToDevice));
    CHECK(cudaDeviceSynchronize());
    iStart = seconds();
    reduceNeighbored<<<grid, block>>>(d_idata, d_odata, size);
    CHECK(cudaDeviceSynchronize());
    iElaps = seconds() - iStart;
    CHECK(cudaMemcpy(h_odata, d_odata, gpu_bytes, cudaMemcpyDeviceToHost));
    gpu_sum = sumGPU(h_odata, grid.x);
    printf("2 | %f sec\t| %f\t|<<<%d, %d>>> | reduceNeighbored\n", iElaps, gpu_sum, grid.x, block.x);

    // ############ 3. reduceNeighboredLess ############
    CHECK(cudaMemcpy(d_idata, h_idata, bytes, cudaMemcpyHostToDevice));
    CHECK(cudaDeviceSynchronize());
    iStart = seconds();
    reduceNeighboredLess<<<grid, block>>>(d_idata, d_odata, size);
    CHECK(cudaDeviceSynchronize());
    iElaps = seconds() - iStart;
    CHECK(cudaMemcpy(h_odata, d_odata, gpu_bytes, cudaMemcpyDeviceToHost));
    gpu_sum = sumGPU(h_odata, grid.x);
    printf("3 | %f sec\t| %f\t|<<<%d, %d>>> | reduceNeighboredLess\n", iElaps, gpu_sum, grid.x, block.x);

    // ############ 4. reduceInterleaved ############
    CHECK(cudaMemcpy(d_idata, h_idata, bytes, cudaMemcpyHostToDevice));
    CHECK(cudaDeviceSynchronize());
    iStart = seconds();
    reduceInterleaved<<<grid, block>>>(d_idata, d_odata, size);
    CHECK(cudaDeviceSynchronize());
    iElaps = seconds() - iStart;
    CHECK(cudaMemcpy(h_odata, d_odata, gpu_bytes, cudaMemcpyDeviceToHost));
    gpu_sum = sumGPU(h_odata, grid.x);
    printf("4 | %f sec\t| %f\t|<<<%d, %d>>> | reduceInterleaved\n", iElaps, gpu_sum, grid.x, block.x);

    // ############ 5. reduceUnrolling2 ############
    CHECK(cudaMemcpy(d_idata, h_idata, bytes, cudaMemcpyHostToDevice));
    CHECK(cudaDeviceSynchronize());
    iStart = seconds();
    reduceUnrolling2<<<grid.x / 2, block>>>(d_idata, d_odata, size);
    CHECK(cudaDeviceSynchronize());
    iElaps = seconds() - iStart;
    CHECK(cudaMemcpy(h_odata, d_odata, grid.x / 2 * sizeof(double), cudaMemcpyDeviceToHost));
    gpu_sum = sumGPU(h_odata, grid.x / 2);
    printf("5 | %f sec\t| %f\t|<<<%d, %d>>> | reduceUnrolling2\n", iElaps, gpu_sum, grid.x/2, block.x);

    // ############ 6. reduceUnrolling4 ############
    CHECK(cudaMemcpy(d_idata, h_idata, bytes, cudaMemcpyHostToDevice));
    CHECK(cudaDeviceSynchronize());
    iStart = seconds();
    reduceUnrolling4<<<grid.x / 4, block>>>(d_idata, d_odata, size);
    CHECK(cudaDeviceSynchronize());
    iElaps = seconds() - iStart;
    CHECK(cudaMemcpy(h_odata, d_odata, grid.x / 4 * sizeof(double), cudaMemcpyDeviceToHost));
    gpu_sum = sumGPU(h_odata, grid.x / 4);
    printf("6 | %f sec\t| %f\t|<<<%d, %d>>> | reduceUnrolling4\n", iElaps, gpu_sum, grid.x/4, block.x);

    // ############ 7. reduceUnrolling8 ############
    CHECK(cudaMemcpy(d_idata, h_idata, bytes, cudaMemcpyHostToDevice));
    CHECK(cudaDeviceSynchronize());
    iStart = seconds();
    reduceUnrolling8<<<grid.x / 8, block>>>(d_idata, d_odata, size);
    CHECK(cudaDeviceSynchronize());
    iElaps = seconds() - iStart;
    CHECK(cudaMemcpy(h_odata, d_odata, grid.x / 8 * sizeof(double), cudaMemcpyDeviceToHost));
    gpu_sum = sumGPU(h_odata, grid.x / 8);
    printf("7 | %f sec\t| %f\t|<<<%d, %d>>> | reduceUnrolling8\n", iElaps, gpu_sum, grid.x/8, block.x);

    // ############ 8. reduceUnrollWarps8 ############
    CHECK(cudaMemcpy(d_idata, h_idata, bytes, cudaMemcpyHostToDevice));
    CHECK(cudaDeviceSynchronize());
    iStart = seconds();
    reduceUnrollWarps8<<<grid.x / 8, block>>>(d_idata, d_odata, size);
    CHECK(cudaDeviceSynchronize());
    iElaps = seconds() - iStart;
    CHECK(cudaMemcpy(h_odata, d_odata, grid.x / 8 * sizeof(double), cudaMemcpyDeviceToHost));
    gpu_sum = sumGPU(h_odata, grid.x / 8);
    printf("8 | %f sec\t| %f\t|<<<%d, %d>>> | reduceUnrollWarps8\n", iElaps, gpu_sum, grid.x/8, block.x);

    // ############ 9. reduceCompleteUnrollWarsp8 ############
    CHECK(cudaMemcpy(d_idata, h_idata, bytes, cudaMemcpyHostToDevice));
    CHECK(cudaDeviceSynchronize());
    iStart = seconds();
    reduceCompleteUnrollWarps8<<<grid.x / 8, block>>>(d_idata, d_odata, size);
    CHECK(cudaDeviceSynchronize());
    iElaps = seconds() - iStart;
    CHECK(cudaMemcpy(h_odata, d_odata, grid.x / 8 * sizeof(double), cudaMemcpyDeviceToHost));
    gpu_sum = sumGPU(h_odata, grid.x / 8);
    printf("9 | %f sec\t| %f\t|<<<%d, %d>>> | reduceCompleteUnrollWarsp8\n", iElaps, gpu_sum, grid.x/8, block.x);

    // ############ 10. reduceCompleteUnroll ############
    CHECK(cudaMemcpy(d_idata, h_idata, bytes, cudaMemcpyHostToDevice));
    CHECK(cudaDeviceSynchronize());
    iStart = seconds();
    switch (BLOCK_SIZE){
    case 1024:
        reduceCompleteUnroll<1024><<<grid.x / 8, block>>>(d_idata, d_odata, size);
        break;

    case 512:
        reduceCompleteUnroll<512><<<grid.x / 8, block>>>(d_idata, d_odata, size);
        break;

    case 256:
        reduceCompleteUnroll<256><<<grid.x / 8, block>>>(d_idata, d_odata, size);
        break;

    case 128:
        reduceCompleteUnroll<128><<<grid.x / 8, block>>>(d_idata, d_odata, size);
        break;

    case 64:
        reduceCompleteUnroll<64><<<grid.x / 8, block>>>(d_idata, d_odata, size);
        break;
    }

    CHECK(cudaDeviceSynchronize());
    iElaps = seconds() - iStart;
    CHECK(cudaMemcpy(h_odata, d_odata, grid.x / 8 * sizeof(double), cudaMemcpyDeviceToHost));
    gpu_sum = sumGPU(h_odata, grid.x / 8);
    printf("10| %f sec\t| %f\t|<<<%d, %d>>> | reduceCompleteUnroll\n", iElaps, gpu_sum, grid.x/8, block.x);

    // free host memory
    free(h_idata);
    free(h_odata);

    // free device memory
    CHECK(cudaFree(d_idata));
    CHECK(cudaFree(d_odata));

    // reset device
    CHECK(cudaDeviceReset());

    // Print sum result
    printf("Sum on CPU : %f\nSum on GPU : %f", cpu_sum, gpu_sum);

    return 0;
}
	.file	"tmpxft_0032de35_00000000-6_sumVector_main.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2036:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2036:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.type	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0, @function
_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0:
.LFB2209:
	.cfi_startproc
	jmp	cudaLaunchKernel@PLT
	.cfi_endproc
.LFE2209:
	.size	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0, .-_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	.type	_ZL53__device_stub__Z20reduceCompleteUnrollILj512EEvPdS0_jPdS_j, @function
_ZL53__device_stub__Z20reduceCompleteUnrollILj512EEvPdS0_jPdS_j:
.LFB2078:
	.cfi_startproc
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rcx
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 80(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 88(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L3
	pushq	48(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z20reduceCompleteUnrollILj512EEvPdS0_j(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 144
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	96(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L3:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2078:
	.size	_ZL53__device_stub__Z20reduceCompleteUnrollILj512EEvPdS0_jPdS_j, .-_ZL53__device_stub__Z20reduceCompleteUnrollILj512EEvPdS0_jPdS_j
	.section	.text._Z20reduceCompleteUnrollILj64EEvPdS0_j,"axG",@progbits,_Z20reduceCompleteUnrollILj64EEvPdS0_j,comdat
	.weak	_Z20reduceCompleteUnrollILj64EEvPdS0_j
	.type	_Z20reduceCompleteUnrollILj64EEvPdS0_j, @function
_Z20reduceCompleteUnrollILj64EEvPdS0_j:
.LFB2138:
	.cfi_startproc
	endbr64
	subq	$104, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	%edx, 4(%rsp)
	leaq	32(%rsp), %rcx
	movq	%rax, 64(%rsp)
	leaq	16(%rsp), %rax
	leaq	24(%rsp), %rdx
	movq	%rax, 72(%rsp)
	leaq	4(%rsp), %rax
	movq	%rdi, 8(%rsp)
	leaq	40(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	52(%rsp), %rsi
	movq	%rax, 80(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 40(%rsp)
	movl	$1, 48(%rsp)
	movq	%rax, 52(%rsp)
	movl	$1, 60(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L8
	pushq	32(%rsp)
	.cfi_def_cfa_offset 120
	leaq	_Z20reduceCompleteUnrollILj64EEvPdS0_j(%rip), %rdi
	pushq	32(%rsp)
	.cfi_def_cfa_offset 128
	movq	68(%rsp), %rcx
	movl	76(%rsp), %r8d
	movq	56(%rsp), %rsi
	movl	64(%rsp), %edx
	leaq	80(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 120
	popq	%rdx
	.cfi_def_cfa_offset 112
.L8:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	addq	$104, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2138:
	.size	_Z20reduceCompleteUnrollILj64EEvPdS0_j, .-_Z20reduceCompleteUnrollILj64EEvPdS0_j
	.section	.text._Z20reduceCompleteUnrollILj128EEvPdS0_j,"axG",@progbits,_Z20reduceCompleteUnrollILj128EEvPdS0_j,comdat
	.weak	_Z20reduceCompleteUnrollILj128EEvPdS0_j
	.type	_Z20reduceCompleteUnrollILj128EEvPdS0_j, @function
_Z20reduceCompleteUnrollILj128EEvPdS0_j:
.LFB2137:
	.cfi_startproc
	endbr64
	subq	$104, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	%edx, 4(%rsp)
	leaq	32(%rsp), %rcx
	movq	%rax, 64(%rsp)
	leaq	16(%rsp), %rax
	leaq	24(%rsp), %rdx
	movq	%rax, 72(%rsp)
	leaq	4(%rsp), %rax
	movq	%rdi, 8(%rsp)
	leaq	40(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	52(%rsp), %rsi
	movq	%rax, 80(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 40(%rsp)
	movl	$1, 48(%rsp)
	movq	%rax, 52(%rsp)
	movl	$1, 60(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L12
	pushq	32(%rsp)
	.cfi_def_cfa_offset 120
	leaq	_Z20reduceCompleteUnrollILj128EEvPdS0_j(%rip), %rdi
	pushq	32(%rsp)
	.cfi_def_cfa_offset 128
	movq	68(%rsp), %rcx
	movl	76(%rsp), %r8d
	movq	56(%rsp), %rsi
	movl	64(%rsp), %edx
	leaq	80(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 120
	popq	%rdx
	.cfi_def_cfa_offset 112
.L12:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	addq	$104, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2137:
	.size	_Z20reduceCompleteUnrollILj128EEvPdS0_j, .-_Z20reduceCompleteUnrollILj128EEvPdS0_j
	.section	.text._Z20reduceCompleteUnrollILj256EEvPdS0_j,"axG",@progbits,_Z20reduceCompleteUnrollILj256EEvPdS0_j,comdat
	.weak	_Z20reduceCompleteUnrollILj256EEvPdS0_j
	.type	_Z20reduceCompleteUnrollILj256EEvPdS0_j, @function
_Z20reduceCompleteUnrollILj256EEvPdS0_j:
.LFB2136:
	.cfi_startproc
	endbr64
	subq	$104, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	%edx, 4(%rsp)
	leaq	32(%rsp), %rcx
	movq	%rax, 64(%rsp)
	leaq	16(%rsp), %rax
	leaq	24(%rsp), %rdx
	movq	%rax, 72(%rsp)
	leaq	4(%rsp), %rax
	movq	%rdi, 8(%rsp)
	leaq	40(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	52(%rsp), %rsi
	movq	%rax, 80(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 40(%rsp)
	movl	$1, 48(%rsp)
	movq	%rax, 52(%rsp)
	movl	$1, 60(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L16
	pushq	32(%rsp)
	.cfi_def_cfa_offset 120
	leaq	_Z20reduceCompleteUnrollILj256EEvPdS0_j(%rip), %rdi
	pushq	32(%rsp)
	.cfi_def_cfa_offset 128
	movq	68(%rsp), %rcx
	movl	76(%rsp), %r8d
	movq	56(%rsp), %rsi
	movl	64(%rsp), %edx
	leaq	80(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 120
	popq	%rdx
	.cfi_def_cfa_offset 112
.L16:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	addq	$104, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2136:
	.size	_Z20reduceCompleteUnrollILj256EEvPdS0_j, .-_Z20reduceCompleteUnrollILj256EEvPdS0_j
	.section	.text._Z20reduceCompleteUnrollILj1024EEvPdS0_j,"axG",@progbits,_Z20reduceCompleteUnrollILj1024EEvPdS0_j,comdat
	.weak	_Z20reduceCompleteUnrollILj1024EEvPdS0_j
	.type	_Z20reduceCompleteUnrollILj1024EEvPdS0_j, @function
_Z20reduceCompleteUnrollILj1024EEvPdS0_j:
.LFB2134:
	.cfi_startproc
	endbr64
	subq	$104, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 88(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rax
	movl	%edx, 4(%rsp)
	leaq	32(%rsp), %rcx
	movq	%rax, 64(%rsp)
	leaq	16(%rsp), %rax
	leaq	24(%rsp), %rdx
	movq	%rax, 72(%rsp)
	leaq	4(%rsp), %rax
	movq	%rdi, 8(%rsp)
	leaq	40(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	52(%rsp), %rsi
	movq	%rax, 80(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 40(%rsp)
	movl	$1, 48(%rsp)
	movq	%rax, 52(%rsp)
	movl	$1, 60(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L20
	pushq	32(%rsp)
	.cfi_def_cfa_offset 120
	leaq	_Z20reduceCompleteUnrollILj1024EEvPdS0_j(%rip), %rdi
	pushq	32(%rsp)
	.cfi_def_cfa_offset 128
	movq	68(%rsp), %rcx
	movl	76(%rsp), %r8d
	movq	56(%rsp), %rsi
	movl	64(%rsp), %edx
	leaq	80(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 120
	popq	%rdx
	.cfi_def_cfa_offset 112
.L20:
	movq	88(%rsp), %rax
	subq	%fs:40, %rax
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	addq	$104, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2134:
	.size	_Z20reduceCompleteUnrollILj1024EEvPdS0_j, .-_Z20reduceCompleteUnrollILj1024EEvPdS0_j
	.section	.text._Z20reduceCompleteUnrollILj512EEvPdS0_j,"axG",@progbits,_Z20reduceCompleteUnrollILj512EEvPdS0_j,comdat
	.weak	_Z20reduceCompleteUnrollILj512EEvPdS0_j
	.type	_Z20reduceCompleteUnrollILj512EEvPdS0_j, @function
_Z20reduceCompleteUnrollILj512EEvPdS0_j:
.LFB2135:
	.cfi_startproc
	endbr64
	jmp	_ZL53__device_stub__Z20reduceCompleteUnrollILj512EEvPdS0_jPdS_j
	.cfi_endproc
.LFE2135:
	.size	_Z20reduceCompleteUnrollILj512EEvPdS0_j, .-_Z20reduceCompleteUnrollILj512EEvPdS0_j
	.section	.text._Z7secondsv,"axG",@progbits,_Z7secondsv,comdat
	.weak	_Z7secondsv
	.type	_Z7secondsv, @function
_Z7secondsv:
.LFB2027:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	8(%rsp), %rdi
	call	gettimeofday@PLT
	cvtsi2sdq	16(%rsp), %xmm0
	mulsd	.LC0(%rip), %xmm0
	cvtsi2sdq	8(%rsp), %xmm1
	addsd	%xmm1, %xmm0
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	addq	$40, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2027:
	.size	_Z7secondsv, .-_Z7secondsv
	.text
	.globl	_Z11initialDataPdi
	.type	_Z11initialDataPdi, @function
_Z11initialDataPdi:
.LFB2028:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rdi, %r12
	xorl	%edi, %edi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movl	%esi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	call	srand@PLT
.L29:
	cmpl	%ebx, %ebp
	jle	.L32
	call	rand@PLT
	cvtsi2sdl	%eax, %xmm0
	divsd	.LC1(%rip), %xmm0
	movsd	%xmm0, (%r12,%rbx,8)
	incq	%rbx
	jmp	.L29
.L32:
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2028:
	.size	_Z11initialDataPdi, .-_Z11initialDataPdi
	.globl	_Z6sumGPUPdi
	.type	_Z6sumGPUPdi, @function
_Z6sumGPUPdi:
.LFB2029:
	.cfi_startproc
	endbr64
	xorl	%eax, %eax
	xorps	%xmm0, %xmm0
.L34:
	cmpl	%eax, %esi
	jle	.L36
	addsd	(%rdi,%rax,8), %xmm0
	incq	%rax
	jmp	.L34
.L36:
	ret
	.cfi_endproc
.LFE2029:
	.size	_Z6sumGPUPdi, .-_Z6sumGPUPdi
	.globl	_Z15recursiveReducePdi
	.type	_Z15recursiveReducePdi, @function
_Z15recursiveReducePdi:
.LFB2030:
	.cfi_startproc
	endbr64
	movl	$2, %ecx
.L41:
	cmpl	$1, %esi
	je	.L43
	movl	%esi, %eax
	cltd
	idivl	%ecx
	movslq	%eax, %rdx
	movq	%rdx, %rsi
	leaq	(%rdi,%rdx,8), %r8
	xorl	%edx, %edx
.L39:
	cmpl	%edx, %eax
	jle	.L41
	movsd	(%rdi,%rdx,8), %xmm0
	addsd	(%r8,%rdx,8), %xmm0
	movsd	%xmm0, (%rdi,%rdx,8)
	incq	%rdx
	jmp	.L39
.L43:
	movsd	(%rdi), %xmm0
	ret
	.cfi_endproc
.LFE2030:
	.size	_Z15recursiveReducePdi, .-_Z15recursiveReducePdi
	.globl	_Z39__device_stub__Z16reduceNeighboredPdS_jPdS_j
	.type	_Z39__device_stub__Z16reduceNeighboredPdS_jPdS_j, @function
_Z39__device_stub__Z16reduceNeighboredPdS_jPdS_j:
.LFB2058:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rcx
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 80(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 88(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L44
	pushq	48(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z16reduceNeighboredPdS_j(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 144
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	96(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L44:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L46
	call	__stack_chk_fail@PLT
.L46:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2058:
	.size	_Z39__device_stub__Z16reduceNeighboredPdS_jPdS_j, .-_Z39__device_stub__Z16reduceNeighboredPdS_jPdS_j
	.globl	_Z16reduceNeighboredPdS_j
	.type	_Z16reduceNeighboredPdS_j, @function
_Z16reduceNeighboredPdS_j:
.LFB2059:
	.cfi_startproc
	endbr64
	jmp	_Z39__device_stub__Z16reduceNeighboredPdS_jPdS_j
	.cfi_endproc
.LFE2059:
	.size	_Z16reduceNeighboredPdS_j, .-_Z16reduceNeighboredPdS_j
	.globl	_Z43__device_stub__Z20reduceNeighboredLessPdS_jPdS_j
	.type	_Z43__device_stub__Z20reduceNeighboredLessPdS_jPdS_j, @function
_Z43__device_stub__Z20reduceNeighboredLessPdS_jPdS_j:
.LFB2060:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rcx
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 80(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 88(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L49
	pushq	48(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z20reduceNeighboredLessPdS_j(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 144
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	96(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L49:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L51
	call	__stack_chk_fail@PLT
.L51:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2060:
	.size	_Z43__device_stub__Z20reduceNeighboredLessPdS_jPdS_j, .-_Z43__device_stub__Z20reduceNeighboredLessPdS_jPdS_j
	.globl	_Z20reduceNeighboredLessPdS_j
	.type	_Z20reduceNeighboredLessPdS_j, @function
_Z20reduceNeighboredLessPdS_j:
.LFB2061:
	.cfi_startproc
	endbr64
	jmp	_Z43__device_stub__Z20reduceNeighboredLessPdS_jPdS_j
	.cfi_endproc
.LFE2061:
	.size	_Z20reduceNeighboredLessPdS_j, .-_Z20reduceNeighboredLessPdS_j
	.globl	_Z40__device_stub__Z17reduceInterleavedPdS_jPdS_j
	.type	_Z40__device_stub__Z17reduceInterleavedPdS_jPdS_j, @function
_Z40__device_stub__Z17reduceInterleavedPdS_jPdS_j:
.LFB2062:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rcx
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 80(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 88(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L54
	pushq	48(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z17reduceInterleavedPdS_j(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 144
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	96(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L54:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2062:
	.size	_Z40__device_stub__Z17reduceInterleavedPdS_jPdS_j, .-_Z40__device_stub__Z17reduceInterleavedPdS_jPdS_j
	.globl	_Z17reduceInterleavedPdS_j
	.type	_Z17reduceInterleavedPdS_j, @function
_Z17reduceInterleavedPdS_j:
.LFB2063:
	.cfi_startproc
	endbr64
	jmp	_Z40__device_stub__Z17reduceInterleavedPdS_jPdS_j
	.cfi_endproc
.LFE2063:
	.size	_Z17reduceInterleavedPdS_j, .-_Z17reduceInterleavedPdS_j
	.globl	_Z39__device_stub__Z16reduceUnrolling2PdS_jPdS_j
	.type	_Z39__device_stub__Z16reduceUnrolling2PdS_jPdS_j, @function
_Z39__device_stub__Z16reduceUnrolling2PdS_jPdS_j:
.LFB2064:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rcx
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 80(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 88(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L59
	pushq	48(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z16reduceUnrolling2PdS_j(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 144
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	96(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L59:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2064:
	.size	_Z39__device_stub__Z16reduceUnrolling2PdS_jPdS_j, .-_Z39__device_stub__Z16reduceUnrolling2PdS_jPdS_j
	.globl	_Z16reduceUnrolling2PdS_j
	.type	_Z16reduceUnrolling2PdS_j, @function
_Z16reduceUnrolling2PdS_j:
.LFB2065:
	.cfi_startproc
	endbr64
	jmp	_Z39__device_stub__Z16reduceUnrolling2PdS_jPdS_j
	.cfi_endproc
.LFE2065:
	.size	_Z16reduceUnrolling2PdS_j, .-_Z16reduceUnrolling2PdS_j
	.globl	_Z39__device_stub__Z16reduceUnrolling4PdS_jPdS_j
	.type	_Z39__device_stub__Z16reduceUnrolling4PdS_jPdS_j, @function
_Z39__device_stub__Z16reduceUnrolling4PdS_jPdS_j:
.LFB2066:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rcx
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 80(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 88(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L64
	pushq	48(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z16reduceUnrolling4PdS_j(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 144
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	96(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L64:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L66
	call	__stack_chk_fail@PLT
.L66:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2066:
	.size	_Z39__device_stub__Z16reduceUnrolling4PdS_jPdS_j, .-_Z39__device_stub__Z16reduceUnrolling4PdS_jPdS_j
	.globl	_Z16reduceUnrolling4PdS_j
	.type	_Z16reduceUnrolling4PdS_j, @function
_Z16reduceUnrolling4PdS_j:
.LFB2067:
	.cfi_startproc
	endbr64
	jmp	_Z39__device_stub__Z16reduceUnrolling4PdS_jPdS_j
	.cfi_endproc
.LFE2067:
	.size	_Z16reduceUnrolling4PdS_j, .-_Z16reduceUnrolling4PdS_j
	.globl	_Z39__device_stub__Z16reduceUnrolling8PdS_jPdS_j
	.type	_Z39__device_stub__Z16reduceUnrolling8PdS_jPdS_j, @function
_Z39__device_stub__Z16reduceUnrolling8PdS_jPdS_j:
.LFB2068:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rcx
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 80(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 88(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L69
	pushq	48(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z16reduceUnrolling8PdS_j(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 144
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	96(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L69:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L71
	call	__stack_chk_fail@PLT
.L71:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2068:
	.size	_Z39__device_stub__Z16reduceUnrolling8PdS_jPdS_j, .-_Z39__device_stub__Z16reduceUnrolling8PdS_jPdS_j
	.globl	_Z16reduceUnrolling8PdS_j
	.type	_Z16reduceUnrolling8PdS_j, @function
_Z16reduceUnrolling8PdS_j:
.LFB2069:
	.cfi_startproc
	endbr64
	jmp	_Z39__device_stub__Z16reduceUnrolling8PdS_jPdS_j
	.cfi_endproc
.LFE2069:
	.size	_Z16reduceUnrolling8PdS_j, .-_Z16reduceUnrolling8PdS_j
	.globl	_Z41__device_stub__Z18reduceUnrollWarps8PdS_jPdS_j
	.type	_Z41__device_stub__Z18reduceUnrollWarps8PdS_jPdS_j, @function
_Z41__device_stub__Z18reduceUnrollWarps8PdS_jPdS_j:
.LFB2070:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rcx
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 80(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 88(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L74
	pushq	48(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z18reduceUnrollWarps8PdS_j(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 144
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	96(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L74:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L76
	call	__stack_chk_fail@PLT
.L76:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2070:
	.size	_Z41__device_stub__Z18reduceUnrollWarps8PdS_jPdS_j, .-_Z41__device_stub__Z18reduceUnrollWarps8PdS_jPdS_j
	.globl	_Z18reduceUnrollWarps8PdS_j
	.type	_Z18reduceUnrollWarps8PdS_j, @function
_Z18reduceUnrollWarps8PdS_j:
.LFB2071:
	.cfi_startproc
	endbr64
	jmp	_Z41__device_stub__Z18reduceUnrollWarps8PdS_jPdS_j
	.cfi_endproc
.LFE2071:
	.size	_Z18reduceUnrollWarps8PdS_j, .-_Z18reduceUnrollWarps8PdS_j
	.globl	_Z49__device_stub__Z26reduceCompleteUnrollWarps8PdS_jPdS_j
	.type	_Z49__device_stub__Z26reduceCompleteUnrollWarps8PdS_jPdS_j, @function
_Z49__device_stub__Z26reduceCompleteUnrollWarps8PdS_jPdS_j:
.LFB2072:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rcx
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 80(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 88(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L79
	pushq	48(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z26reduceCompleteUnrollWarps8PdS_j(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 144
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	96(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L79:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L81
	call	__stack_chk_fail@PLT
.L81:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2072:
	.size	_Z49__device_stub__Z26reduceCompleteUnrollWarps8PdS_jPdS_j, .-_Z49__device_stub__Z26reduceCompleteUnrollWarps8PdS_jPdS_j
	.globl	_Z26reduceCompleteUnrollWarps8PdS_j
	.type	_Z26reduceCompleteUnrollWarps8PdS_j, @function
_Z26reduceCompleteUnrollWarps8PdS_j:
.LFB2073:
	.cfi_startproc
	endbr64
	jmp	_Z49__device_stub__Z26reduceCompleteUnrollWarps8PdS_jPdS_j
	.cfi_endproc
.LFE2073:
	.size	_Z26reduceCompleteUnrollWarps8PdS_j, .-_Z26reduceCompleteUnrollWarps8PdS_j
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"############ TH\303\224NG TIN GPU ############\n"
.LC4:
	.string	"/home/ubuntu/Datasets/stackv2/train-structured/hmthanh/paralell_programming/master/BT_4/sumVector_main.cu"
.LC5:
	.string	"Error: %s:%d, "
.LC6:
	.string	"code:%d, reason: %s\n"
.LC7:
	.string	"Device %d: %s \n"
.LC8:
	.string	"K\303\255ch th\306\260\341\273\233c m\341\272\243ng : %d\n"
.LC9:
	.string	"K\303\255ch th\306\260\341\273\233c : <<<Grid (%d, %d), Block (%d, %d)>>>\n"
.LC10:
	.string	"ID| Time \t\t| Sum result \t\t| <<<GridSize, BlockSize >>> | Kernel\t\t\n"
.LC11:
	.string	"1 | %f sec\t| %f\t|\t\t | recursiveReduce-CPU\n"
.LC12:
	.string	"2 | %f sec\t| %f\t|<<<%d, %d>>> | reduceNeighbored\n"
.LC13:
	.string	"3 | %f sec\t| %f\t|<<<%d, %d>>> | reduceNeighboredLess\n"
.LC14:
	.string	"4 | %f sec\t| %f\t|<<<%d, %d>>> | reduceInterleaved\n"
.LC15:
	.string	"5 | %f sec\t| %f\t|<<<%d, %d>>> | reduceUnrolling2\n"
.LC16:
	.string	"6 | %f sec\t| %f\t|<<<%d, %d>>> | reduceUnrolling4\n"
.LC17:
	.string	"7 | %f sec\t| %f\t|<<<%d, %d>>> | reduceUnrolling8\n"
.LC18:
	.string	"8 | %f sec\t| %f\t|<<<%d, %d>>> | reduceUnrollWarps8\n"
.LC19:
	.string	"9 | %f sec\t| %f\t|<<<%d, %d>>> | reduceCompleteUnrollWarsp8\n"
.LC20:
	.string	"10| %f sec\t| %f\t|<<<%d, %d>>> | reduceCompleteUnroll\n"
.LC21:
	.string	"Sum on CPU : %f\nSum on GPU : %f"
	.section	.text.startup,"ax",@progbits
	.globl	main
	.type	main, @function
main:
.LFB2033:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	.LC3(%rip), %rsi
	movl	$2, %edi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$1120, %rsp
	.cfi_def_cfa_offset 1168
	movq	%fs:40, %rax
	movq	%rax, 1112(%rsp)
	xorl	%eax, %eax
	leaq	80(%rsp), %rbp
	call	__printf_chk@PLT
	xorl	%esi, %esi
	movq	%rbp, %rdi
	call	cudaGetDeviceProperties_v2@PLT
	testl	%eax, %eax
	je	.L85
	movl	%eax, %ebx
	movl	$441, %ecx
	jmp	.L139
.L85:
	movq	%rbp, %rcx
	xorl	%edx, %edx
	leaq	.LC7(%rip), %rsi
	xorl	%eax, %eax
	movl	$2, %edi
	call	__printf_chk@PLT
	xorl	%edi, %edi
	call	cudaSetDevice@PLT
	movl	%eax, %ebx
	testl	%eax, %eax
	je	.L86
	movl	$443, %ecx
.L139:
	leaq	.LC4(%rip), %rdx
	leaq	.LC5(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%ebx, %edi
	call	cudaGetErrorString@PLT
	movl	%ebx, %edx
	movq	%rax, %rcx
.L140:
	movl	$2, %edi
	leaq	.LC6(%rip), %rsi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$1, %edi
	call	exit@PLT
.L86:
	movl	$16777216, %edx
	leaq	.LC8(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	$1, %r9d
	movl	$32768, %r8d
	movl	$1, %ecx
	movl	$512, %edx
	leaq	.LC9(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	movl	$1, 52(%rsp)
	movl	$1, 64(%rsp)
	call	__printf_chk@PLT
	movl	$134217728, %edi
	call	malloc@PLT
	movl	$262144, %edi
	movq	%rax, %rbp
	call	malloc@PLT
	movl	$134217728, %edi
	movq	%rax, %rbx
	call	malloc@PLT
	movl	$16777216, %esi
	movq	%rbp, %rdi
	movq	%rax, %r12
	call	_Z11initialDataPdi
	movl	$33554432, %ecx
	movq	%r12, %rdi
	movq	%rbp, %rsi
	rep movsl
	xorl	%eax, %eax
	leaq	24(%rsp), %rdi
	movl	$134217728, %esi
	movq	%rax, 24(%rsp)
	movq	%rax, 32(%rsp)
	call	cudaMalloc@PLT
	movl	$473, %ecx
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	.L141
	leaq	32(%rsp), %rdi
	movl	$262144, %esi
	call	cudaMalloc@PLT
	movl	%eax, %r13d
	testl	%eax, %eax
	je	.L88
	movl	$474, %ecx
.L141:
	leaq	.LC4(%rip), %rdx
	leaq	.LC5(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%r13d, %edi
	call	cudaGetErrorString@PLT
	movl	%r13d, %edx
	movq	%rax, %rcx
	jmp	.L140
.L88:
	leaq	.LC10(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	call	_Z7secondsv
	movq	%r12, %rdi
	movl	$16777216, %esi
	movsd	%xmm0, 8(%rsp)
	call	_Z15recursiveReducePdi
	movq	%xmm0, %r14
	call	_Z7secondsv
	subsd	8(%rsp), %xmm0
	movq	%r14, %xmm1
	movb	$2, %al
	leaq	.LC11(%rip), %rsi
	movl	$2, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rdi
	movl	$1, %ecx
	movq	%rbp, %rsi
	movl	$134217728, %edx
	call	cudaMemcpy@PLT
	movl	$484, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	cudaDeviceSynchronize@PLT
	movl	$485, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	_Z7secondsv
	movl	$131073, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	$8388609, %edx
	movl	52(%rsp), %ecx
	movl	64(%rsp), %esi
	salq	$15, %rdi
	salq	$9, %rdx
	movq	%rdi, 56(%rsp)
	movq	%rdx, 44(%rsp)
	movsd	%xmm0, 8(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L91
	movq	32(%rsp), %rsi
	movq	24(%rsp), %rdi
	movl	$16777216, %edx
	call	_Z39__device_stub__Z16reduceNeighboredPdS_jPdS_j
.L91:
	call	cudaDeviceSynchronize@PLT
	movl	$488, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	_Z7secondsv
	subsd	8(%rsp), %xmm0
	movq	32(%rsp), %rsi
	movq	%rbx, %rdi
	movl	$2, %ecx
	movl	$262144, %edx
	movq	%xmm0, %r13
	call	cudaMemcpy@PLT
	movl	$490, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	movl	$32768, %esi
	movq	%rbx, %rdi
	movl	$512, %ecx
	movl	$32768, %edx
	call	_Z6sumGPUPdi
	leaq	.LC12(%rip), %rsi
	movl	$2, %edi
	movb	$2, %al
	movaps	%xmm0, %xmm1
	movq	%r13, %xmm0
	call	__printf_chk@PLT
	movq	24(%rsp), %rdi
	movl	$1, %ecx
	movq	%rbp, %rsi
	movl	$134217728, %edx
	call	cudaMemcpy@PLT
	movl	$495, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	cudaDeviceSynchronize@PLT
	movl	$496, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	_Z7secondsv
	movl	52(%rsp), %ecx
	movl	64(%rsp), %esi
	xorl	%r9d, %r9d
	movq	44(%rsp), %rdx
	movq	56(%rsp), %rdi
	xorl	%r8d, %r8d
	movsd	%xmm0, 8(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L96
	movq	32(%rsp), %rsi
	movq	24(%rsp), %rdi
	movl	$16777216, %edx
	call	_Z43__device_stub__Z20reduceNeighboredLessPdS_jPdS_j
.L96:
	call	cudaDeviceSynchronize@PLT
	movl	$499, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	_Z7secondsv
	subsd	8(%rsp), %xmm0
	movq	32(%rsp), %rsi
	movq	%rbx, %rdi
	movl	$2, %ecx
	movl	$262144, %edx
	movq	%xmm0, %r13
	call	cudaMemcpy@PLT
	movl	$501, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	movl	$32768, %esi
	movq	%rbx, %rdi
	movl	$512, %ecx
	movl	$32768, %edx
	call	_Z6sumGPUPdi
	leaq	.LC13(%rip), %rsi
	movl	$2, %edi
	movb	$2, %al
	movaps	%xmm0, %xmm1
	movq	%r13, %xmm0
	call	__printf_chk@PLT
	movq	24(%rsp), %rdi
	movl	$1, %ecx
	movq	%rbp, %rsi
	movl	$134217728, %edx
	call	cudaMemcpy@PLT
	movl	$506, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	cudaDeviceSynchronize@PLT
	movl	$507, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	_Z7secondsv
	movl	52(%rsp), %ecx
	movl	64(%rsp), %esi
	xorl	%r9d, %r9d
	movq	44(%rsp), %rdx
	movq	56(%rsp), %rdi
	xorl	%r8d, %r8d
	movsd	%xmm0, 8(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L101
	movq	32(%rsp), %rsi
	movq	24(%rsp), %rdi
	movl	$16777216, %edx
	call	_Z40__device_stub__Z17reduceInterleavedPdS_jPdS_j
.L101:
	call	cudaDeviceSynchronize@PLT
	movl	$510, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	_Z7secondsv
	subsd	8(%rsp), %xmm0
	movq	32(%rsp), %rsi
	movq	%rbx, %rdi
	movl	$2, %ecx
	movl	$262144, %edx
	movq	%xmm0, %r13
	call	cudaMemcpy@PLT
	movl	$512, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	movl	$32768, %esi
	movq	%rbx, %rdi
	movl	$512, %ecx
	movl	$32768, %edx
	call	_Z6sumGPUPdi
	leaq	.LC14(%rip), %rsi
	movl	$2, %edi
	movb	$2, %al
	movaps	%xmm0, %xmm1
	movq	%r13, %xmm0
	call	__printf_chk@PLT
	movq	24(%rsp), %rdi
	movl	$1, %ecx
	movq	%rbp, %rsi
	movl	$134217728, %edx
	call	cudaMemcpy@PLT
	movl	$517, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	cudaDeviceSynchronize@PLT
	movl	$518, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	_Z7secondsv
	movl	$262145, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	52(%rsp), %ecx
	movq	44(%rsp), %rdx
	salq	$14, %rdi
	movl	$1, %esi
	movq	%rdi, 68(%rsp)
	movl	$1, 76(%rsp)
	movsd	%xmm0, 8(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L106
	movq	32(%rsp), %rsi
	movq	24(%rsp), %rdi
	movl	$16777216, %edx
	call	_Z39__device_stub__Z16reduceUnrolling2PdS_jPdS_j
.L106:
	call	cudaDeviceSynchronize@PLT
	movl	$521, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	_Z7secondsv
	subsd	8(%rsp), %xmm0
	movq	32(%rsp), %rsi
	movq	%rbx, %rdi
	movl	$2, %ecx
	movl	$131072, %edx
	movq	%xmm0, %r13
	call	cudaMemcpy@PLT
	movl	$523, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	movl	$16384, %esi
	movq	%rbx, %rdi
	movl	$512, %ecx
	movl	$16384, %edx
	call	_Z6sumGPUPdi
	leaq	.LC15(%rip), %rsi
	movl	$2, %edi
	movb	$2, %al
	movaps	%xmm0, %xmm1
	movq	%r13, %xmm0
	call	__printf_chk@PLT
	movq	24(%rsp), %rdi
	movl	$1, %ecx
	movq	%rbp, %rsi
	movl	$134217728, %edx
	call	cudaMemcpy@PLT
	movl	$528, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	cudaDeviceSynchronize@PLT
	movl	$529, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	_Z7secondsv
	movl	$524289, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	52(%rsp), %ecx
	movq	44(%rsp), %rdx
	salq	$13, %rdi
	movl	$1, %esi
	movq	%rdi, 68(%rsp)
	movl	$1, 76(%rsp)
	movsd	%xmm0, 8(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L111
	movq	32(%rsp), %rsi
	movq	24(%rsp), %rdi
	movl	$16777216, %edx
	call	_Z39__device_stub__Z16reduceUnrolling4PdS_jPdS_j
.L111:
	call	cudaDeviceSynchronize@PLT
	movl	$532, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	_Z7secondsv
	subsd	8(%rsp), %xmm0
	movq	32(%rsp), %rsi
	movq	%rbx, %rdi
	movl	$2, %ecx
	movl	$65536, %edx
	movq	%xmm0, %r13
	call	cudaMemcpy@PLT
	movl	$534, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	movl	$8192, %esi
	movq	%rbx, %rdi
	movl	$512, %ecx
	movl	$8192, %edx
	call	_Z6sumGPUPdi
	leaq	.LC16(%rip), %rsi
	movl	$2, %edi
	movb	$2, %al
	movaps	%xmm0, %xmm1
	movq	%r13, %xmm0
	call	__printf_chk@PLT
	movq	24(%rsp), %rdi
	movl	$1, %ecx
	movq	%rbp, %rsi
	movl	$134217728, %edx
	call	cudaMemcpy@PLT
	movl	$539, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	cudaDeviceSynchronize@PLT
	movl	$540, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	_Z7secondsv
	movl	$1048577, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	52(%rsp), %ecx
	movq	44(%rsp), %rdx
	salq	$12, %rdi
	movl	$1, %esi
	movq	%rdi, 68(%rsp)
	movl	$1, 76(%rsp)
	movsd	%xmm0, 8(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L116
	movq	32(%rsp), %rsi
	movq	24(%rsp), %rdi
	movl	$16777216, %edx
	call	_Z39__device_stub__Z16reduceUnrolling8PdS_jPdS_j
.L116:
	call	cudaDeviceSynchronize@PLT
	movl	$543, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	_Z7secondsv
	subsd	8(%rsp), %xmm0
	movq	32(%rsp), %rsi
	movq	%rbx, %rdi
	movl	$2, %ecx
	movl	$32768, %edx
	movq	%xmm0, %r13
	call	cudaMemcpy@PLT
	movl	$545, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	movl	$4096, %esi
	movq	%rbx, %rdi
	movl	$512, %ecx
	movl	$4096, %edx
	call	_Z6sumGPUPdi
	leaq	.LC17(%rip), %rsi
	movl	$2, %edi
	movb	$2, %al
	movaps	%xmm0, %xmm1
	movq	%r13, %xmm0
	call	__printf_chk@PLT
	movq	24(%rsp), %rdi
	movl	$1, %ecx
	movq	%rbp, %rsi
	movl	$134217728, %edx
	call	cudaMemcpy@PLT
	movl	$550, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	cudaDeviceSynchronize@PLT
	movl	$551, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	_Z7secondsv
	movl	$1048577, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	52(%rsp), %ecx
	movq	44(%rsp), %rdx
	salq	$12, %rdi
	movl	$1, %esi
	movq	%rdi, 68(%rsp)
	movl	$1, 76(%rsp)
	movsd	%xmm0, 8(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L121
	movq	32(%rsp), %rsi
	movq	24(%rsp), %rdi
	movl	$16777216, %edx
	call	_Z41__device_stub__Z18reduceUnrollWarps8PdS_jPdS_j
.L121:
	call	cudaDeviceSynchronize@PLT
	movl	$554, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	_Z7secondsv
	subsd	8(%rsp), %xmm0
	movq	32(%rsp), %rsi
	movq	%rbx, %rdi
	movl	$2, %ecx
	movl	$32768, %edx
	movq	%xmm0, %r13
	call	cudaMemcpy@PLT
	movl	$556, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	movl	$4096, %esi
	movq	%rbx, %rdi
	movl	$512, %ecx
	movl	$4096, %edx
	call	_Z6sumGPUPdi
	leaq	.LC18(%rip), %rsi
	movl	$2, %edi
	movb	$2, %al
	movaps	%xmm0, %xmm1
	movq	%r13, %xmm0
	call	__printf_chk@PLT
	movq	24(%rsp), %rdi
	movl	$1, %ecx
	movq	%rbp, %rsi
	movl	$134217728, %edx
	call	cudaMemcpy@PLT
	movl	$561, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	cudaDeviceSynchronize@PLT
	movl	$562, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	_Z7secondsv
	movl	$1048577, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	52(%rsp), %ecx
	movq	44(%rsp), %rdx
	salq	$12, %rdi
	movl	$1, %esi
	movq	%rdi, 68(%rsp)
	movl	$1, 76(%rsp)
	movsd	%xmm0, 8(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L126
	movq	32(%rsp), %rsi
	movq	24(%rsp), %rdi
	movl	$16777216, %edx
	call	_Z49__device_stub__Z26reduceCompleteUnrollWarps8PdS_jPdS_j
.L126:
	call	cudaDeviceSynchronize@PLT
	movl	$565, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	_Z7secondsv
	subsd	8(%rsp), %xmm0
	movq	32(%rsp), %rsi
	movq	%rbx, %rdi
	movl	$2, %ecx
	movl	$32768, %edx
	movq	%xmm0, %r13
	call	cudaMemcpy@PLT
	movl	$567, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	movl	$4096, %esi
	movq	%rbx, %rdi
	movl	$512, %ecx
	movl	$4096, %edx
	call	_Z6sumGPUPdi
	leaq	.LC19(%rip), %rsi
	movl	$2, %edi
	movb	$2, %al
	movaps	%xmm0, %xmm1
	movq	%r13, %xmm0
	call	__printf_chk@PLT
	movq	24(%rsp), %rdi
	movl	$1, %ecx
	movq	%rbp, %rsi
	movl	$134217728, %edx
	call	cudaMemcpy@PLT
	movl	$572, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	cudaDeviceSynchronize@PLT
	movl	$573, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	_Z7secondsv
	movl	$1048577, %edi
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	movl	52(%rsp), %ecx
	movq	44(%rsp), %rdx
	salq	$12, %rdi
	movl	$1, %esi
	movq	%rdi, 68(%rsp)
	movl	$1, 76(%rsp)
	movsd	%xmm0, 8(%rsp)
	call	__cudaPushCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L131
	movq	32(%rsp), %rsi
	movq	24(%rsp), %rdi
	movl	$16777216, %edx
	call	_ZL53__device_stub__Z20reduceCompleteUnrollILj512EEvPdS0_jPdS_j
.L131:
	call	cudaDeviceSynchronize@PLT
	movl	$597, %ecx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	.L142
	call	_Z7secondsv
	subsd	8(%rsp), %xmm0
	movq	32(%rsp), %rsi
	movq	%rbx, %rdi
	movl	$2, %ecx
	movl	$32768, %edx
	movq	%xmm0, %r13
	call	cudaMemcpy@PLT
	movl	%eax, %r12d
	testl	%eax, %eax
	je	.L133
	movl	$599, %ecx
.L142:
	leaq	.LC4(%rip), %rdx
	leaq	.LC5(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	%r12d, %edi
	call	cudaGetErrorString@PLT
	movl	%r12d, %edx
	movq	%rax, %rcx
	jmp	.L140
.L133:
	movq	%rbx, %rdi
	movl	$4096, %esi
	movl	$512, %ecx
	movl	$4096, %edx
	call	_Z6sumGPUPdi
	leaq	.LC20(%rip), %rsi
	movl	$2, %edi
	movb	$2, %al
	movaps	%xmm0, %xmm1
	movsd	%xmm0, 8(%rsp)
	movq	%r13, %xmm0
	call	__printf_chk@PLT
	movq	%rbp, %rdi
	call	free@PLT
	movq	%rbx, %rdi
	call	free@PLT
	movq	24(%rsp), %rdi
	call	cudaFree@PLT
	movsd	8(%rsp), %xmm1
	movl	$608, %ecx
	testl	%eax, %eax
	movl	%eax, %ebx
	jne	.L139
	movq	32(%rsp), %rdi
	movsd	%xmm1, 8(%rsp)
	call	cudaFree@PLT
	movsd	8(%rsp), %xmm1
	movl	$609, %ecx
	testl	%eax, %eax
	movl	%eax, %ebx
	jne	.L139
	movsd	%xmm1, 8(%rsp)
	call	cudaDeviceReset@PLT
	movsd	8(%rsp), %xmm1
	movl	$612, %ecx
	testl	%eax, %eax
	movl	%eax, %ebx
	jne	.L139
	movq	%r14, %xmm0
	leaq	.LC21(%rip), %rsi
	movl	$2, %edi
	movb	$2, %al
	call	__printf_chk@PLT
	movq	1112(%rsp), %rax
	subq	%fs:40, %rax
	je	.L137
	call	__stack_chk_fail@PLT
.L137:
	addq	$1120, %rsp
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2033:
	.size	main, .-main
	.text
	.globl	_Z40__device_stub__Z17reduceUnrollWarpsPdS_jPdS_j
	.type	_Z40__device_stub__Z17reduceUnrollWarpsPdS_jPdS_j, @function
_Z40__device_stub__Z17reduceUnrollWarpsPdS_jPdS_j:
.LFB2074:
	.cfi_startproc
	endbr64
	subq	$120, %rsp
	.cfi_def_cfa_offset 128
	movq	%rdi, 24(%rsp)
	leaq	48(%rsp), %rcx
	leaq	56(%rsp), %rdi
	movq	%rsi, 16(%rsp)
	leaq	68(%rsp), %rsi
	movl	%edx, 12(%rsp)
	leaq	40(%rsp), %rdx
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rax
	movl	$1, 64(%rsp)
	movq	%rax, 80(%rsp)
	leaq	16(%rsp), %rax
	movq	%rax, 88(%rsp)
	leaq	12(%rsp), %rax
	movq	%rax, 96(%rsp)
	movabsq	$4294967297, %rax
	movq	%rax, 56(%rsp)
	movq	%rax, 68(%rsp)
	movl	$1, 76(%rsp)
	call	__cudaPopCallConfiguration@PLT
	testl	%eax, %eax
	jne	.L143
	pushq	48(%rsp)
	.cfi_def_cfa_offset 136
	leaq	_Z17reduceUnrollWarpsPdS_j(%rip), %rdi
	pushq	48(%rsp)
	.cfi_def_cfa_offset 144
	movq	84(%rsp), %rcx
	movl	92(%rsp), %r8d
	movq	72(%rsp), %rsi
	movl	80(%rsp), %edx
	leaq	96(%rsp), %r9
	call	_Z16cudaLaunchKernelIcE9cudaErrorPT_4dim3S3_PPvmP11CUstream_st.isra.0
	popq	%rax
	.cfi_def_cfa_offset 136
	popq	%rdx
	.cfi_def_cfa_offset 128
.L143:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	je	.L145
	call	__stack_chk_fail@PLT
.L145:
	addq	$120, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE2074:
	.size	_Z40__device_stub__Z17reduceUnrollWarpsPdS_jPdS_j, .-_Z40__device_stub__Z17reduceUnrollWarpsPdS_jPdS_j
	.globl	_Z17reduceUnrollWarpsPdS_j
	.type	_Z17reduceUnrollWarpsPdS_j, @function
_Z17reduceUnrollWarpsPdS_j:
.LFB2075:
	.cfi_startproc
	endbr64
	jmp	_Z40__device_stub__Z17reduceUnrollWarpsPdS_jPdS_j
	.cfi_endproc
.LFE2075:
	.size	_Z17reduceUnrollWarpsPdS_j, .-_Z17reduceUnrollWarpsPdS_j
	.section	.rodata.str1.1
.LC22:
	.string	"_Z20reduceCompleteUnrollILj64EEvPdS0_j"
.LC23:
	.string	"_Z20reduceCompleteUnrollILj128EEvPdS0_j"
.LC24:
	.string	"_Z20reduceCompleteUnrollILj256EEvPdS0_j"
.LC25:
	.string	"_Z20reduceCompleteUnrollILj512EEvPdS0_j"
.LC26:
	.string	"_Z20reduceCompleteUnrollILj1024EEvPdS0_j"
.LC27:
	.string	"_Z17reduceUnrollWarpsPdS_j"
.LC28:
	.string	"_Z26reduceCompleteUnrollWarps8PdS_j"
.LC29:
	.string	"_Z18reduceUnrollWarps8PdS_j"
.LC30:
	.string	"_Z16reduceUnrolling8PdS_j"
.LC31:
	.string	"_Z16reduceUnrolling4PdS_j"
.LC32:
	.string	"_Z16reduceUnrolling2PdS_j"
.LC33:
	.string	"_Z17reduceInterleavedPdS_j"
.LC34:
	.string	"_Z20reduceNeighboredLessPdS_j"
.LC35:
	.string	"_Z16reduceNeighboredPdS_j"
	.section	.text.startup
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2087:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	pushq	$0
	.cfi_def_cfa_offset 24
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	.LC22(%rip), %rdx
	movq	%rax, %rdi
	movq	%rax, %rbx
	pushq	$0
	.cfi_def_cfa_offset 40
	movq	%rdx, %rcx
	leaq	_Z20reduceCompleteUnrollILj64EEvPdS0_j(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 48
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC23(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z20reduceCompleteUnrollILj128EEvPdS0_j(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC24(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z20reduceCompleteUnrollILj256EEvPdS0_j(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC25(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z20reduceCompleteUnrollILj512EEvPdS0_j(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC26(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z20reduceCompleteUnrollILj1024EEvPdS0_j(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC27(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z17reduceUnrollWarpsPdS_j(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC28(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z26reduceCompleteUnrollWarps8PdS_j(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC29(%rip), %rdx
	movq	%rbx, %rdi
	leaq	_Z18reduceUnrollWarps8PdS_j(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	leaq	.LC30(%rip), %rdx
	pushq	$0
	.cfi_def_cfa_offset 24
	movq	%rdx, %rcx
	xorl	%r9d, %r9d
	orl	$-1, %r8d
	pushq	$0
	.cfi_def_cfa_offset 32
	leaq	_Z16reduceUnrolling8PdS_j(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC31(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z16reduceUnrolling4PdS_j(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC32(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z16reduceUnrolling2PdS_j(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC33(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z17reduceInterleavedPdS_j(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC34(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z20reduceNeighboredLessPdS_j(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	movq	%rbx, %rdi
	xorl	%r9d, %r9d
	pushq	$0
	.cfi_def_cfa_offset 24
	leaq	.LC35(%rip), %rdx
	orl	$-1, %r8d
	leaq	_Z16reduceNeighboredPdS_j(%rip), %rsi
	pushq	$0
	.cfi_def_cfa_offset 32
	movq	%rdx, %rcx
	pushq	$0
	.cfi_def_cfa_offset 40
	pushq	$0
	.cfi_def_cfa_offset 48
	call	__cudaRegisterFunction@PLT
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE2087:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	-1598689907
	.long	1051772663
	.align 8
.LC1:
	.long	-4194304
	.long	1105199103
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <stdio.h>
#include <stdlib.h>
#include <hip/hip_runtime.h>
#include <sys/time.h>

using namespace std;

// ############### COMMON ###############
#define CHECK(call)                                                        \
{                                                                          \
    const hipError_t error = call;                                        \
    if (error != hipSuccess)                                              \
    {                                                                      \
        printf("Error: %s:%d, ", __FILE__, __LINE__);                      \
        printf("code:%d, reason: %s\n", error, hipGetErrorString(error)); \
        exit(1);                                                           \
    }                                                                      \
}

inline double seconds()
{
    struct timeval tp;
    struct timezone tzp;
    int i = gettimeofday(&tp, &tzp);
    return ((double)tp.tv_sec + (double)tp.tv_usec * 1.e-6);
}

void initialData(double *data, int size)
// Khởi tạo vector ban đầu có kích thước size, kiểu double và giá random trong khoảng [0, 1]
{
    srand(0);
    for (int i = 0; i < size; i++)
    {
        data[i] = (double)(rand()) / RAND_MAX;
    }
}

double sumGPU(double *data, int size){
    double sum = 0;
    for(int i = 0; i < size; i++){
        sum += data[i];
    }

    return sum;
}

// ############### Device(CPU) ###############
// Hàm thực hiện reduce trên CPU
double recursiveReduce(double *data, int const size)
{
    if (size == 1) return data[0];
  
    int const stride = size / 2;
    for (int i = 0; i < stride; i++){
        data[i] += data[i + stride];
    }
    
    return recursiveReduce(data, stride);
}

// ############### Device(GPU) ###############
// Neighbored Pair phân kỳ
__global__ void reduceNeighbored (double *g_idata, double *g_odata,
    unsigned int n)
{
    unsigned int tid = threadIdx.x;
    unsigned int idx = blockIdx.x * blockDim.x + threadIdx.x;

    // Chuyển từ con trỏ toàn cục sang con trỏ của block này
    double *idata = g_idata + blockIdx.x * blockDim.x;

    // Kiểm tra nếu vượt qua kích thước mảng
    if (idx >= n) return;

    // Thực hiện tính tổng ở bộ nhớ toàn cục
    for (int stride = 1; stride < blockDim.x; stride *= 2)
    {
        if ((tid % (2 * stride)) == 0)
        {
            idata[tid] += idata[tid + stride];
        }

        // Đồng bộ hóa trong một threadBlock
        __syncthreads();
    }

    // Ghi kết quả cho block này vào bộ nhớ toàn cục
    if (tid == 0) g_odata[blockIdx.x] = idata[0];
}

// Neighbored Pair cài đặt với ít phân kỳ bằng cách thực thi trong một block
__global__ void reduceNeighboredLess (double *g_idata, double *g_odata,
    unsigned int n)
{
    unsigned int tid = threadIdx.x;
    unsigned int idx = blockIdx.x * blockDim.x + threadIdx.x;

    // Chuyển từ con trỏ toàn cục sang con trỏ của block này
    double *idata = g_idata + blockIdx.x * blockDim.x;

    // Kiểm tra nếu vượt qua kích thước mảng
    if(idx >= n) return;

    // Thực hiện tính tổng ở bộ nhớ toàn cục
    for (int stride = 1; stride < blockDim.x; stride *= 2)
    {
        // Chuyển tid sang bộ nhớ của một block (register - thanh ghi)
        int index = 2 * stride * tid;

        if (index < blockDim.x)
        {
            idata[index] += idata[index + stride];
        }

        // Đồng bộ hóa trong một threadBlock
        __syncthreads();
    }

    // Ghi kết quả cho block này vào bộ nhớ toàn cục
    if (tid == 0) g_odata[blockIdx.x] = idata[0];
}

// Interleaved Pair Implementation with less divergence
__global__ void reduceInterleaved (double *g_idata, double *g_odata, unsigned int n)
{
    unsigned int tid = threadIdx.x;
    unsigned int idx = blockIdx.x * blockDim.x + threadIdx.x;

    // Chuyển từ con trỏ toàn cục sang con trỏ của block này
    double *idata = g_idata + blockIdx.x * blockDim.x;

    // Kiểm tra nếu vượt qua kích thước mảng
    if(idx >= n) return;

    // Thực hiện tính tổng ở bộ nhớ toàn cục
    for (int stride = blockDim.x / 2; stride > 0; stride >>= 1)
    {
        if (tid < stride)
        {
            idata[tid] += idata[tid + stride];
        }

        __syncthreads();
    }

    // Ghi kết quả cho block này vào bộ nhớ toàn cục
    if (tid == 0) g_odata[blockIdx.x] = idata[0];
}

__global__ void reduceUnrolling2 (double *g_idata, double *g_odata,
    unsigned int n)
{
    unsigned int tid = threadIdx.x;
    unsigned int idx = blockIdx.x * blockDim.x * 2 + threadIdx.x;

    // Chuyển từ con trỏ toàn cục sang con trỏ của block này
    double *idata = g_idata + blockIdx.x * blockDim.x * 2;

    // unrolling 2 data blocks
    if (idx + blockDim.x < n) g_idata[idx] += g_idata[idx + blockDim.x];
    // Đồng bộ hóa các group data trong 2 thread kết cận
    __syncthreads();

    // Thực hiện tính tổng ở bộ nhớ toàn cục
    for (int stride = blockDim.x / 2; stride > 0; stride >>= 1)
    {
        if (tid < stride)
        {
            idata[tid] += idata[tid + stride];
        }

        // Đồng bộ hóa trong một threadBlock
        __syncthreads();
    }

    // Ghi kết quả cho block này vào bộ nhớ toàn cục
    if (tid == 0) g_odata[blockIdx.x] = idata[0];
}

__global__ void reduceUnrolling4(double *g_idata, double *g_odata, unsigned int n){
    unsigned int tid = threadIdx.x;
    unsigned int idx = blockIdx.x * blockDim.x * 4 + threadIdx.x;

    // Chuyển từ con trỏ toàn cục sang con trỏ của block này
    double *idata = g_idata + blockIdx.x * blockDim.x * 4;

    // unrolling 4
    if (idx + 3 * blockDim.x < n)
    {
        double a1 = g_idata[idx];
        double a2 = g_idata[idx + blockDim.x];
        double a3 = g_idata[idx + 2 * blockDim.x];
        double a4 = g_idata[idx + 3 * blockDim.x];
        g_idata[idx] = a1 + a2 + a3 + a4;
    }
    __syncthreads(); // Đồng bộ hóa các group data trong 4 thread kết cận

    // Thực hiện tính tổng ở bộ nhớ toàn cục
    for (int stride = blockDim.x / 2; stride > 0; stride >>= 1)
    {
        if (tid < stride)
        {
            idata[tid] += idata[tid + stride];
        }

        // Đồng bộ hóa trong một threadBlock
        __syncthreads();
    }

    // Ghi kết quả cho block này vào bộ nhớ toàn cục
    if (tid == 0) g_odata[blockIdx.x] = idata[0];
}

__global__ void reduceUnrolling8 (double *g_idata, double *g_odata, unsigned int n){
    unsigned int tid = threadIdx.x;
    unsigned int idx = blockIdx.x * blockDim.x * 8 + threadIdx.x;
    double *idata = g_idata + blockIdx.x * blockDim.x * 8;

    // unrolling 8
    if (idx + 7 * blockDim.x < n)
    {
        double a1 = g_idata[idx];
        double a2 = g_idata[idx + blockDim.x];
        double a3 = g_idata[idx + 2 * blockDim.x];
        double a4 = g_idata[idx + 3 * blockDim.x];
        double b1 = g_idata[idx + 4 * blockDim.x];
        double b2 = g_idata[idx + 5 * blockDim.x];
        double b3 = g_idata[idx + 6 * blockDim.x];
        double b4 = g_idata[idx + 7 * blockDim.x];
        g_idata[idx] = a1 + a2 + a3 + a4 + b1 + b2 + b3 + b4;
    }
    __syncthreads(); // Đồng bộ hóa các group data trong 8 thread kết cận

    // Thực hiện tính tổng ở bộ nhớ toàn cục
    for (int stride = blockDim.x / 2; stride > 0; stride >>= 1){
        if (tid < stride){
            idata[tid] += idata[tid + stride];
        }

        // Đồng bộ hóa trong một threadBlock
        __syncthreads();
    }
    if (tid == 0) g_odata[blockIdx.x] = idata[0];
}

__global__ void reduceUnrollWarps8 (double *g_idata, double *g_odata, unsigned int n)
{
    unsigned int tid = threadIdx.x;
    unsigned int idx = blockIdx.x * blockDim.x * 8 + threadIdx.x;
    double *idata = g_idata + blockIdx.x * blockDim.x * 8;

    if (idx + 7 * blockDim.x < n)
    {
        double a1 = g_idata[idx];
        double a2 = g_idata[idx + blockDim.x];
        double a3 = g_idata[idx + 2 * blockDim.x];
        double a4 = g_idata[idx + 3 * blockDim.x];
        double b1 = g_idata[idx + 4 * blockDim.x];
        double b2 = g_idata[idx + 5 * blockDim.x];
        double b3 = g_idata[idx + 6 * blockDim.x];
        double b4 = g_idata[idx + 7 * blockDim.x];
        g_idata[idx] = a1 + a2 + a3 + a4 + b1 + b2 + b3 + b4;
    }
    __syncthreads();

    // Thực hiện tính tổng ở bộ nhớ toàn cục
    for (int stride = blockDim.x / 2; stride > 32; stride >>= 1){
        if (tid < stride){
            idata[tid] += idata[tid + stride];
        }

        // Đồng bộ hóa trong một threadBlock
        __syncthreads();
    }

    // unrolling warp
    if (tid < 32)
    {
        volatile double *vmem = idata;
        vmem[tid] += vmem[tid + 32];
        vmem[tid] += vmem[tid + 16];
        vmem[tid] += vmem[tid +  8];
        vmem[tid] += vmem[tid +  4];
        vmem[tid] += vmem[tid +  2];
        vmem[tid] += vmem[tid +  1];
    }

    if (tid == 0) g_odata[blockIdx.x] = idata[0];
}

__global__ void reduceCompleteUnrollWarps8 (double *g_idata, double *g_odata,
        unsigned int n){
    unsigned int tid = threadIdx.x;
    unsigned int idx = blockIdx.x * blockDim.x * 8 + threadIdx.x;
    double *idata = g_idata + blockIdx.x * blockDim.x * 8;

    if (idx + 7 * blockDim.x < n)
    {
        double a1 = g_idata[idx];
        double a2 = g_idata[idx + blockDim.x];
        double a3 = g_idata[idx + 2 * blockDim.x];
        double a4 = g_idata[idx + 3 * blockDim.x];
        double b1 = g_idata[idx + 4 * blockDim.x];
        double b2 = g_idata[idx + 5 * blockDim.x];
        double b3 = g_idata[idx + 6 * blockDim.x];
        double b4 = g_idata[idx + 7 * blockDim.x];
        g_idata[idx] = a1 + a2 + a3 + a4 + b1 + b2 + b3 + b4;
    }
    __syncthreads(); // Đồng bộ hóa tất cả các thread trong một block

    // in-place reduction and complete unroll
    if (blockDim.x >= 1024 && tid < 512) idata[tid] += idata[tid + 512];
    __syncthreads();

    if (blockDim.x >= 512 && tid < 256) idata[tid] += idata[tid + 256];
    __syncthreads();

    if (blockDim.x >= 256 && tid < 128) idata[tid] += idata[tid + 128];
    __syncthreads();

    if (blockDim.x >= 128 && tid < 64) idata[tid] += idata[tid + 64];
    __syncthreads();

    // unrolling warp
    if (tid < 32)
    {
        volatile double *vsmem = idata;
        vsmem[tid] += vsmem[tid + 32];
        vsmem[tid] += vsmem[tid + 16];
        vsmem[tid] += vsmem[tid +  8];
        vsmem[tid] += vsmem[tid +  4];
        vsmem[tid] += vsmem[tid +  2];
        vsmem[tid] += vsmem[tid +  1];
    }

    // Ghi kết quả cho block này vào bộ nhớ toàn cục
    if (tid == 0) g_odata[blockIdx.x] = idata[0];
}

template <unsigned int iBlockSize>
__global__ void reduceCompleteUnroll(double *g_idata, double *g_odata,
                                     unsigned int n)
{
    unsigned int tid = threadIdx.x;
    unsigned int idx = blockIdx.x * blockDim.x * 8 + threadIdx.x;

    // Chuyển từ con trỏ toàn cục sang con trỏ của block này
    double *idata = g_idata + blockIdx.x * blockDim.x * 8;

    // unrolling 8
    if (idx + 7 * blockDim.x < n)
    {
        double a1 = g_idata[idx];
        double a2 = g_idata[idx + blockDim.x];
        double a3 = g_idata[idx + 2 * blockDim.x];
        double a4 = g_idata[idx + 3 * blockDim.x];
        double b1 = g_idata[idx + 4 * blockDim.x];
        double b2 = g_idata[idx + 5 * blockDim.x];
        double b3 = g_idata[idx + 6 * blockDim.x];
        double b4 = g_idata[idx + 7 * blockDim.x];
        g_idata[idx] = a1 + a2 + a3 + a4 + b1 + b2 + b3 + b4;
    }

    __syncthreads(); // Đồng bộ tất các thread trong một block

    // in-place reduction and complete unroll
    if (iBlockSize >= 1024 && tid < 512) idata[tid] += idata[tid + 512];
    __syncthreads();

    if (iBlockSize >= 512 && tid < 256)  idata[tid] += idata[tid + 256];
    __syncthreads();

    if (iBlockSize >= 256 && tid < 128)  idata[tid] += idata[tid + 128];
    __syncthreads();

    if (iBlockSize >= 128 && tid < 64)   idata[tid] += idata[tid + 64];
    __syncthreads();

    // unrolling warp
    if (tid < 32)
    {
        volatile double *vsmem = idata;
        vsmem[tid] += vsmem[tid + 32];
        vsmem[tid] += vsmem[tid + 16];
        vsmem[tid] += vsmem[tid +  8];
        vsmem[tid] += vsmem[tid +  4];
        vsmem[tid] += vsmem[tid +  2];
        vsmem[tid] += vsmem[tid +  1];
    }

    // Ghi kết quả cho block này vào bộ nhớ toàn cục
    if (tid == 0) g_odata[blockIdx.x] = idata[0];
}

__global__ void reduceUnrollWarps (double *g_idata, double *g_odata, unsigned int n)
{
    unsigned int tid = threadIdx.x;
    unsigned int idx = blockIdx.x * blockDim.x * 2 + threadIdx.x;

    // Chuyển từ con trỏ toàn cục sang con trỏ của block này
    double *idata = g_idata + blockIdx.x * blockDim.x * 2;

    // unrolling 2
    if (idx + blockDim.x < n) g_idata[idx] += g_idata[idx + blockDim.x];

    __syncthreads();

    // Thực hiện tính tổng ở bộ nhớ toàn cục
    for (int stride = blockDim.x / 2; stride > 32; stride >>= 1)
    {
        if (tid < stride)
        {
            idata[tid] += idata[tid + stride];
        }

        // Đồng bộ hóa trong một threadBlock
        __syncthreads();
    }

    // unrolling last warp
    if (tid < 32)
    {
        volatile double *vsmem = idata;
        vsmem[tid] += vsmem[tid + 32];
        vsmem[tid] += vsmem[tid + 16];
        vsmem[tid] += vsmem[tid +  8];
        vsmem[tid] += vsmem[tid +  4];
        vsmem[tid] += vsmem[tid +  2];
        vsmem[tid] += vsmem[tid +  1];
    }

    if (tid == 0) g_odata[blockIdx.x] = idata[0];
}

int main()
{
    printf("############ THÔNG TIN GPU ############\n");
    // Chọn GPU thực thi câu lệnh    
    int dev = 0;
    hipDeviceProp_t deviceProp;
    CHECK(hipGetDeviceProperties(&deviceProp, dev));
    printf("Device %d: %s \n", dev, deviceProp.name);
    CHECK(hipSetDevice(dev));

    // Khởi tạo kích thước vector
    int size = 1 << 24; // 2^24
    printf("Kích thước mảng : %d\n", size);
    
    // Kernel được cấu hình với 1D grid và 1D blocks
    int const BLOCK_SIZE = 512;
    dim3 block (BLOCK_SIZE, 1); // Block size có kích thước 512 x 1 ~ (x, y)
    dim3 grid  ((size + block.x - 1) / block.x, 1); // Grid size có kích thước ceil(size/block.x)
    printf("Kích thước : <<<Grid (%d, %d), Block (%d, %d)>>>\n", block.x, block.y, grid.x, grid.y);
 
    // Cấp phát bộ nhớ trên host (CPU)
    size_t bytes = size * sizeof(double);
    double *h_idata = (double *) malloc(bytes); // host input data
    double *h_odata = (double *) malloc(grid.x * sizeof(double)); // host output data
    double *temp    = (double *) malloc(bytes); // vùng nhớ tạp để copy input cho nhiều hàm thực thi khác nhau
 
    initialData(h_idata, size);
    // Copy vào biến temp để chạy với CPU
    memcpy (temp, h_idata, bytes);
 
    // Biến tính thời gian chạy
    double iStart, iElaps;
    double gpu_sum = 0.0; // hàm tính tổng kết quả trên GPU
    double gpu_bytes = grid.x * sizeof(double);

    // Cấp phát bộ nhớ trên device (GPU)
    double *d_idata = NULL;
    double *d_odata = NULL;
    CHECK(hipMalloc(&d_idata, bytes));
    CHECK(hipMalloc(&d_odata, gpu_bytes));
 
    printf("ID| Time \t\t| Sum result \t\t| <<<GridSize, BlockSize >>> | Kernel\t\t\n");
    // ############ 1. CPU #############
    iStart = seconds();
    double cpu_sum = recursiveReduce (temp, size);
    iElaps = seconds() - iStart;
    printf("1 | %f sec\t| %f\t|\t\t | recursiveReduce-CPU\n", iElaps, cpu_sum);

    // ############ 2. reduceNeighbored ############
    CHECK(hipMemcpy(d_idata, h_idata, bytes, hipMemcpyHostToDevice));
    CHECK(hipDeviceSynchronize());
    iStart = seconds();
    reduceNeighbored<<<grid, block>>>(d_idata, d_odata, size);
    CHECK(hipDeviceSynchronize());
    iElaps = seconds() - iStart;
    CHECK(hipMemcpy(h_odata, d_odata, gpu_bytes, hipMemcpyDeviceToHost));
    gpu_sum = sumGPU(h_odata, grid.x);
    printf("2 | %f sec\t| %f\t|<<<%d, %d>>> | reduceNeighbored\n", iElaps, gpu_sum, grid.x, block.x);

    // ############ 3. reduceNeighboredLess ############
    CHECK(hipMemcpy(d_idata, h_idata, bytes, hipMemcpyHostToDevice));
    CHECK(hipDeviceSynchronize());
    iStart = seconds();
    reduceNeighboredLess<<<grid, block>>>(d_idata, d_odata, size);
    CHECK(hipDeviceSynchronize());
    iElaps = seconds() - iStart;
    CHECK(hipMemcpy(h_odata, d_odata, gpu_bytes, hipMemcpyDeviceToHost));
    gpu_sum = sumGPU(h_odata, grid.x);
    printf("3 | %f sec\t| %f\t|<<<%d, %d>>> | reduceNeighboredLess\n", iElaps, gpu_sum, grid.x, block.x);

    // ############ 4. reduceInterleaved ############
    CHECK(hipMemcpy(d_idata, h_idata, bytes, hipMemcpyHostToDevice));
    CHECK(hipDeviceSynchronize());
    iStart = seconds();
    reduceInterleaved<<<grid, block>>>(d_idata, d_odata, size);
    CHECK(hipDeviceSynchronize());
    iElaps = seconds() - iStart;
    CHECK(hipMemcpy(h_odata, d_odata, gpu_bytes, hipMemcpyDeviceToHost));
    gpu_sum = sumGPU(h_odata, grid.x);
    printf("4 | %f sec\t| %f\t|<<<%d, %d>>> | reduceInterleaved\n", iElaps, gpu_sum, grid.x, block.x);

    // ############ 5. reduceUnrolling2 ############
    CHECK(hipMemcpy(d_idata, h_idata, bytes, hipMemcpyHostToDevice));
    CHECK(hipDeviceSynchronize());
    iStart = seconds();
    reduceUnrolling2<<<grid.x / 2, block>>>(d_idata, d_odata, size);
    CHECK(hipDeviceSynchronize());
    iElaps = seconds() - iStart;
    CHECK(hipMemcpy(h_odata, d_odata, grid.x / 2 * sizeof(double), hipMemcpyDeviceToHost));
    gpu_sum = sumGPU(h_odata, grid.x / 2);
    printf("5 | %f sec\t| %f\t|<<<%d, %d>>> | reduceUnrolling2\n", iElaps, gpu_sum, grid.x/2, block.x);

    // ############ 6. reduceUnrolling4 ############
    CHECK(hipMemcpy(d_idata, h_idata, bytes, hipMemcpyHostToDevice));
    CHECK(hipDeviceSynchronize());
    iStart = seconds();
    reduceUnrolling4<<<grid.x / 4, block>>>(d_idata, d_odata, size);
    CHECK(hipDeviceSynchronize());
    iElaps = seconds() - iStart;
    CHECK(hipMemcpy(h_odata, d_odata, grid.x / 4 * sizeof(double), hipMemcpyDeviceToHost));
    gpu_sum = sumGPU(h_odata, grid.x / 4);
    printf("6 | %f sec\t| %f\t|<<<%d, %d>>> | reduceUnrolling4\n", iElaps, gpu_sum, grid.x/4, block.x);

    // ############ 7. reduceUnrolling8 ############
    CHECK(hipMemcpy(d_idata, h_idata, bytes, hipMemcpyHostToDevice));
    CHECK(hipDeviceSynchronize());
    iStart = seconds();
    reduceUnrolling8<<<grid.x / 8, block>>>(d_idata, d_odata, size);
    CHECK(hipDeviceSynchronize());
    iElaps = seconds() - iStart;
    CHECK(hipMemcpy(h_odata, d_odata, grid.x / 8 * sizeof(double), hipMemcpyDeviceToHost));
    gpu_sum = sumGPU(h_odata, grid.x / 8);
    printf("7 | %f sec\t| %f\t|<<<%d, %d>>> | reduceUnrolling8\n", iElaps, gpu_sum, grid.x/8, block.x);

    // ############ 8. reduceUnrollWarps8 ############
    CHECK(hipMemcpy(d_idata, h_idata, bytes, hipMemcpyHostToDevice));
    CHECK(hipDeviceSynchronize());
    iStart = seconds();
    reduceUnrollWarps8<<<grid.x / 8, block>>>(d_idata, d_odata, size);
    CHECK(hipDeviceSynchronize());
    iElaps = seconds() - iStart;
    CHECK(hipMemcpy(h_odata, d_odata, grid.x / 8 * sizeof(double), hipMemcpyDeviceToHost));
    gpu_sum = sumGPU(h_odata, grid.x / 8);
    printf("8 | %f sec\t| %f\t|<<<%d, %d>>> | reduceUnrollWarps8\n", iElaps, gpu_sum, grid.x/8, block.x);

    // ############ 9. reduceCompleteUnrollWarsp8 ############
    CHECK(hipMemcpy(d_idata, h_idata, bytes, hipMemcpyHostToDevice));
    CHECK(hipDeviceSynchronize());
    iStart = seconds();
    reduceCompleteUnrollWarps8<<<grid.x / 8, block>>>(d_idata, d_odata, size);
    CHECK(hipDeviceSynchronize());
    iElaps = seconds() - iStart;
    CHECK(hipMemcpy(h_odata, d_odata, grid.x / 8 * sizeof(double), hipMemcpyDeviceToHost));
    gpu_sum = sumGPU(h_odata, grid.x / 8);
    printf("9 | %f sec\t| %f\t|<<<%d, %d>>> | reduceCompleteUnrollWarsp8\n", iElaps, gpu_sum, grid.x/8, block.x);

    // ############ 10. reduceCompleteUnroll ############
    CHECK(hipMemcpy(d_idata, h_idata, bytes, hipMemcpyHostToDevice));
    CHECK(hipDeviceSynchronize());
    iStart = seconds();
    switch (BLOCK_SIZE){
    case 1024:
        reduceCompleteUnroll<1024><<<grid.x / 8, block>>>(d_idata, d_odata, size);
        break;

    case 512:
        reduceCompleteUnroll<512><<<grid.x / 8, block>>>(d_idata, d_odata, size);
        break;

    case 256:
        reduceCompleteUnroll<256><<<grid.x / 8, block>>>(d_idata, d_odata, size);
        break;

    case 128:
        reduceCompleteUnroll<128><<<grid.x / 8, block>>>(d_idata, d_odata, size);
        break;

    case 64:
        reduceCompleteUnroll<64><<<grid.x / 8, block>>>(d_idata, d_odata, size);
        break;
    }

    CHECK(hipDeviceSynchronize());
    iElaps = seconds() - iStart;
    CHECK(hipMemcpy(h_odata, d_odata, grid.x / 8 * sizeof(double), hipMemcpyDeviceToHost));
    gpu_sum = sumGPU(h_odata, grid.x / 8);
    printf("10| %f sec\t| %f\t|<<<%d, %d>>> | reduceCompleteUnroll\n", iElaps, gpu_sum, grid.x/8, block.x);

    // free host memory
    free(h_idata);
    free(h_odata);

    // free device memory
    CHECK(hipFree(d_idata));
    CHECK(hipFree(d_odata));

    // reset device
    CHECK(hipDeviceReset());

    // Print sum result
    printf("Sum on CPU : %f\nSum on GPU : %f", cpu_sum, gpu_sum);

    return 0;
}
	.text
	.file	"sumVector_main.hip"
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function _Z11initialDataPdi
.LCPI0_0:
	.quad	0x41dfffffffc00000              # double 2147483647
	.text
	.globl	_Z11initialDataPdi
	.type	_Z11initialDataPdi,@function
_Z11initialDataPdi:                     # @_Z11initialDataPdi
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	pushq	%rax
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	%esi, %ebp
	movq	%rdi, %rbx
	xorl	%edi, %edi
	callq	srand
	testl	%ebp, %ebp
	jle	.LBB0_3
# %bb.1:                                # %.lr.ph.preheader
	movl	%ebp, %r14d
	xorl	%r15d, %r15d
.LBB0_2:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	callq	rand
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	divsd	.LCPI0_0(%rip), %xmm0
	movsd	%xmm0, (%rbx,%r15,8)
	incq	%r15
	cmpq	%r15, %r14
	jne	.LBB0_2
.LBB0_3:                                # %._crit_edge
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end0:
	.size	_Z11initialDataPdi, .Lfunc_end0-_Z11initialDataPdi
	.cfi_endproc
                                        # -- End function
	.globl	_Z6sumGPUPdi                    # -- Begin function _Z6sumGPUPdi
	.type	_Z6sumGPUPdi,@function
_Z6sumGPUPdi:                           # @_Z6sumGPUPdi
	.cfi_startproc
# %bb.0:
	testl	%esi, %esi
	jle	.LBB1_1
# %bb.3:                                # %.lr.ph.preheader
	movl	%esi, %eax
	xorpd	%xmm0, %xmm0
	xorl	%ecx, %ecx
.LBB1_4:                                # %.lr.ph
                                        # =>This Inner Loop Header: Depth=1
	addsd	(%rdi,%rcx,8), %xmm0
	incq	%rcx
	cmpq	%rcx, %rax
	jne	.LBB1_4
# %bb.2:                                # %._crit_edge
	retq
.LBB1_1:
	xorps	%xmm0, %xmm0
	retq
.Lfunc_end1:
	.size	_Z6sumGPUPdi, .Lfunc_end1-_Z6sumGPUPdi
	.cfi_endproc
                                        # -- End function
	.globl	_Z15recursiveReducePdi          # -- Begin function _Z15recursiveReducePdi
	.type	_Z15recursiveReducePdi,@function
_Z15recursiveReducePdi:                 # @_Z15recursiveReducePdi
	.cfi_startproc
# %bb.0:
	cmpl	$1, %esi
	je	.LBB2_1
.LBB2_3:                                # %.lr.ph19
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB2_5 Depth 2
	movl	%esi, %eax
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	cmpl	$2, %eax
	jl	.LBB2_2
# %bb.4:                                # %.lr.ph.preheader
                                        #   in Loop: Header=BB2_3 Depth=1
	movl	%esi, %ecx
	leaq	(%rdi,%rcx,8), %rdx
	xorl	%r8d, %r8d
.LBB2_5:                                # %.lr.ph
                                        #   Parent Loop BB2_3 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	(%rdx,%r8,8), %xmm0             # xmm0 = mem[0],zero
	addsd	(%rdi,%r8,8), %xmm0
	movsd	%xmm0, (%rdi,%r8,8)
	incq	%r8
	cmpq	%r8, %rcx
	jne	.LBB2_5
.LBB2_2:                                # %tailrecurse.loopexit
                                        #   in Loop: Header=BB2_3 Depth=1
	andl	$-2, %eax
	cmpl	$2, %eax
	jne	.LBB2_3
.LBB2_1:                                # %tailrecurse._crit_edge
	movsd	(%rdi), %xmm0                   # xmm0 = mem[0],zero
	retq
.Lfunc_end2:
	.size	_Z15recursiveReducePdi, .Lfunc_end2-_Z15recursiveReducePdi
	.cfi_endproc
                                        # -- End function
	.globl	_Z31__device_stub__reduceNeighboredPdS_j # -- Begin function _Z31__device_stub__reduceNeighboredPdS_j
	.type	_Z31__device_stub__reduceNeighboredPdS_j,@function
_Z31__device_stub__reduceNeighboredPdS_j: # @_Z31__device_stub__reduceNeighboredPdS_j
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z16reduceNeighboredPdS_j, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end3:
	.size	_Z31__device_stub__reduceNeighboredPdS_j, .Lfunc_end3-_Z31__device_stub__reduceNeighboredPdS_j
	.cfi_endproc
                                        # -- End function
	.globl	_Z35__device_stub__reduceNeighboredLessPdS_j # -- Begin function _Z35__device_stub__reduceNeighboredLessPdS_j
	.type	_Z35__device_stub__reduceNeighboredLessPdS_j,@function
_Z35__device_stub__reduceNeighboredLessPdS_j: # @_Z35__device_stub__reduceNeighboredLessPdS_j
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z20reduceNeighboredLessPdS_j, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end4:
	.size	_Z35__device_stub__reduceNeighboredLessPdS_j, .Lfunc_end4-_Z35__device_stub__reduceNeighboredLessPdS_j
	.cfi_endproc
                                        # -- End function
	.globl	_Z32__device_stub__reduceInterleavedPdS_j # -- Begin function _Z32__device_stub__reduceInterleavedPdS_j
	.type	_Z32__device_stub__reduceInterleavedPdS_j,@function
_Z32__device_stub__reduceInterleavedPdS_j: # @_Z32__device_stub__reduceInterleavedPdS_j
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z17reduceInterleavedPdS_j, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end5:
	.size	_Z32__device_stub__reduceInterleavedPdS_j, .Lfunc_end5-_Z32__device_stub__reduceInterleavedPdS_j
	.cfi_endproc
                                        # -- End function
	.globl	_Z31__device_stub__reduceUnrolling2PdS_j # -- Begin function _Z31__device_stub__reduceUnrolling2PdS_j
	.type	_Z31__device_stub__reduceUnrolling2PdS_j,@function
_Z31__device_stub__reduceUnrolling2PdS_j: # @_Z31__device_stub__reduceUnrolling2PdS_j
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z16reduceUnrolling2PdS_j, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end6:
	.size	_Z31__device_stub__reduceUnrolling2PdS_j, .Lfunc_end6-_Z31__device_stub__reduceUnrolling2PdS_j
	.cfi_endproc
                                        # -- End function
	.globl	_Z31__device_stub__reduceUnrolling4PdS_j # -- Begin function _Z31__device_stub__reduceUnrolling4PdS_j
	.type	_Z31__device_stub__reduceUnrolling4PdS_j,@function
_Z31__device_stub__reduceUnrolling4PdS_j: # @_Z31__device_stub__reduceUnrolling4PdS_j
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z16reduceUnrolling4PdS_j, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end7:
	.size	_Z31__device_stub__reduceUnrolling4PdS_j, .Lfunc_end7-_Z31__device_stub__reduceUnrolling4PdS_j
	.cfi_endproc
                                        # -- End function
	.globl	_Z31__device_stub__reduceUnrolling8PdS_j # -- Begin function _Z31__device_stub__reduceUnrolling8PdS_j
	.type	_Z31__device_stub__reduceUnrolling8PdS_j,@function
_Z31__device_stub__reduceUnrolling8PdS_j: # @_Z31__device_stub__reduceUnrolling8PdS_j
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z16reduceUnrolling8PdS_j, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end8:
	.size	_Z31__device_stub__reduceUnrolling8PdS_j, .Lfunc_end8-_Z31__device_stub__reduceUnrolling8PdS_j
	.cfi_endproc
                                        # -- End function
	.globl	_Z33__device_stub__reduceUnrollWarps8PdS_j # -- Begin function _Z33__device_stub__reduceUnrollWarps8PdS_j
	.type	_Z33__device_stub__reduceUnrollWarps8PdS_j,@function
_Z33__device_stub__reduceUnrollWarps8PdS_j: # @_Z33__device_stub__reduceUnrollWarps8PdS_j
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z18reduceUnrollWarps8PdS_j, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end9:
	.size	_Z33__device_stub__reduceUnrollWarps8PdS_j, .Lfunc_end9-_Z33__device_stub__reduceUnrollWarps8PdS_j
	.cfi_endproc
                                        # -- End function
	.globl	_Z41__device_stub__reduceCompleteUnrollWarps8PdS_j # -- Begin function _Z41__device_stub__reduceCompleteUnrollWarps8PdS_j
	.type	_Z41__device_stub__reduceCompleteUnrollWarps8PdS_j,@function
_Z41__device_stub__reduceCompleteUnrollWarps8PdS_j: # @_Z41__device_stub__reduceCompleteUnrollWarps8PdS_j
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z26reduceCompleteUnrollWarps8PdS_j, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end10:
	.size	_Z41__device_stub__reduceCompleteUnrollWarps8PdS_j, .Lfunc_end10-_Z41__device_stub__reduceCompleteUnrollWarps8PdS_j
	.cfi_endproc
                                        # -- End function
	.globl	_Z32__device_stub__reduceUnrollWarpsPdS_j # -- Begin function _Z32__device_stub__reduceUnrollWarpsPdS_j
	.type	_Z32__device_stub__reduceUnrollWarpsPdS_j,@function
_Z32__device_stub__reduceUnrollWarpsPdS_j: # @_Z32__device_stub__reduceUnrollWarpsPdS_j
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z17reduceUnrollWarpsPdS_j, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end11:
	.size	_Z32__device_stub__reduceUnrollWarpsPdS_j, .Lfunc_end11-_Z32__device_stub__reduceUnrollWarpsPdS_j
	.cfi_endproc
                                        # -- End function
	.section	.rodata.cst8,"aM",@progbits,8
	.p2align	3, 0x0                          # -- Begin function main
.LCPI12_0:
	.quad	0x3eb0c6f7a0b5ed8d              # double 9.9999999999999995E-7
	.text
	.globl	main
	.type	main,@function
main:                                   # @main
	.cfi_startproc
# %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	pushq	%r15
	.cfi_def_cfa_offset 24
	pushq	%r14
	.cfi_def_cfa_offset 32
	pushq	%r13
	.cfi_def_cfa_offset 40
	pushq	%r12
	.cfi_def_cfa_offset 48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	subq	$1544, %rsp                     # imm = 0x608
	.cfi_def_cfa_offset 1600
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	.cfi_offset %rbp, -16
	movl	$.Lstr, %edi
	callq	puts@PLT
	leaq	72(%rsp), %rdi
	xorl	%esi, %esi
	callq	hipGetDevicePropertiesR0600
	testl	%eax, %eax
	jne	.LBB12_1
# %bb.4:
	leaq	72(%rsp), %rdx
	movl	$.L.str.4, %edi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	printf
	xorl	%edi, %edi
	callq	hipSetDevice
	testl	%eax, %eax
	jne	.LBB12_5
# %bb.6:
	xorl	%r12d, %r12d
	movl	$.L.str.5, %edi
	movl	$16777216, %esi                 # imm = 0x1000000
	xorl	%eax, %eax
	callq	printf
	movl	$.L.str.6, %edi
	movl	$512, %esi                      # imm = 0x200
	movl	$1, %edx
	movl	$32768, %ecx                    # imm = 0x8000
	movl	$1, %r8d
	xorl	%eax, %eax
	callq	printf
	movl	$134217728, %edi                # imm = 0x8000000
	callq	malloc
	movq	%rax, %rbx
	movl	$262144, %edi                   # imm = 0x40000
	callq	malloc
	movq	%rax, %r14
	movl	$134217728, %edi                # imm = 0x8000000
	callq	malloc
	movq	%rax, %r15
	movq	%rbx, %rdi
	movl	$16777216, %esi                 # imm = 0x1000000
	callq	_Z11initialDataPdi
	movl	$134217728, %edx                # imm = 0x8000000
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	memcpy@PLT
	leaq	24(%rsp), %rdi
	movq	%r12, (%rdi)
	movq	%r12, 16(%rsp)
	movl	$134217728, %esi                # imm = 0x8000000
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB12_7
# %bb.9:
	leaq	16(%rsp), %rdi
	movl	$262144, %esi                   # imm = 0x40000
	callq	hipMalloc
	testl	%eax, %eax
	jne	.LBB12_10
# %bb.11:
	movl	$.Lstr.1, %edi
	callq	puts@PLT
	leaq	48(%rsp), %r12
	leaq	32(%rsp), %rsi
	movq	%r12, %rdi
	callq	gettimeofday
	cvtsi2sdq	8(%r12), %xmm1
	movq	(%r12), %rax
	mulsd	.LCPI12_0(%rip), %xmm1
	movl	$16777216, %ecx                 # imm = 0x1000000
.LBB12_13:                              # %.lr.ph19.i
                                        # =>This Loop Header: Depth=1
                                        #     Child Loop BB12_15 Depth 2
	movl	%ecx, %edx
	shrl	$31, %ecx
	addl	%edx, %ecx
	sarl	%ecx
	cmpl	$2, %edx
	jl	.LBB12_12
# %bb.14:                               # %.lr.ph.preheader.i
                                        #   in Loop: Header=BB12_13 Depth=1
	movl	%ecx, %esi
	movq	%r15, %rdi
	movq	%rsi, %r8
.LBB12_15:                              # %.lr.ph.i
                                        #   Parent Loop BB12_13 Depth=1
                                        # =>  This Inner Loop Header: Depth=2
	movsd	(%rdi,%rsi,8), %xmm0            # xmm0 = mem[0],zero
	addsd	(%rdi), %xmm0
	movsd	%xmm0, (%rdi)
	addq	$8, %rdi
	decq	%r8
	jne	.LBB12_15
.LBB12_12:                              # %tailrecurse.loopexit.i
                                        #   in Loop: Header=BB12_13 Depth=1
	andl	$-2, %edx
	cmpl	$2, %edx
	jne	.LBB12_13
# %bb.16:                               # %_Z15recursiveReducePdi.exit
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	addsd	%xmm0, %xmm1
	movsd	%xmm1, 8(%rsp)                  # 8-byte Spill
	movsd	(%r15), %xmm0                   # xmm0 = mem[0],zero
	movsd	%xmm0, 64(%rsp)                 # 8-byte Spill
	leaq	48(%rsp), %r15
	leaq	32(%rsp), %rsi
	movq	%r15, %rdi
	callq	gettimeofday
	xorps	%xmm1, %xmm1
	cvtsi2sdq	(%r15), %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%r15), %xmm0
	mulsd	.LCPI12_0(%rip), %xmm0
	addsd	%xmm1, %xmm0
	subsd	8(%rsp), %xmm0                  # 8-byte Folded Reload
	movl	$.L.str.8, %edi
	movsd	64(%rsp), %xmm1                 # 8-byte Reload
                                        # xmm1 = mem[0],zero
	movb	$2, %al
	callq	printf
	movq	24(%rsp), %rdi
	movl	$134217728, %edx                # imm = 0x8000000
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB12_17
# %bb.18:
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	jne	.LBB12_19
# %bb.20:
	movabsq	$4294967808, %r15               # imm = 0x100000200
	leaq	48(%rsp), %r12
	leaq	32(%rsp), %rsi
	movq	%r12, %rdi
	callq	gettimeofday
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%r12), %xmm0
	movsd	%xmm0, 40(%rsp)                 # 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%r12), %xmm0
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	leaq	32256(%r15), %r12
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB12_22
# %bb.21:
	movq	24(%rsp), %rdi
	movq	16(%rsp), %rsi
	movl	$16777216, %edx                 # imm = 0x1000000
	callq	_Z31__device_stub__reduceNeighboredPdS_j
.LBB12_22:
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	jne	.LBB12_23
# %bb.24:
	leaq	48(%rsp), %r13
	leaq	32(%rsp), %rsi
	movq	%r13, %rdi
	callq	gettimeofday
	movq	(%r13), %r15
	movq	8(%r13), %r13
	movq	16(%rsp), %rsi
	movl	$262144, %edx                   # imm = 0x40000
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB12_25
# %bb.26:                               # %.lr.ph.preheader.i379
	movsd	8(%rsp), %xmm2                  # 8-byte Reload
                                        # xmm2 = mem[0],zero
	mulsd	.LCPI12_0(%rip), %xmm2
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r13, %xmm1
	mulsd	.LCPI12_0(%rip), %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r15, %xmm0
	addsd	40(%rsp), %xmm2                 # 8-byte Folded Reload
	addsd	%xmm1, %xmm0
	xorpd	%xmm1, %xmm1
	xorl	%eax, %eax
.LBB12_27:                              # %.lr.ph.i380
                                        # =>This Inner Loop Header: Depth=1
	addsd	(%r14,%rax,8), %xmm1
	incq	%rax
	cmpq	$32768, %rax                    # imm = 0x8000
	jne	.LBB12_27
# %bb.28:                               # %_Z6sumGPUPdi.exit
	subsd	%xmm2, %xmm0
	movl	$.L.str.9, %edi
	movl	$32768, %esi                    # imm = 0x8000
	movl	$512, %edx                      # imm = 0x200
	movb	$2, %al
	callq	printf
	movq	24(%rsp), %rdi
	movl	$134217728, %edx                # imm = 0x8000000
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB12_29
# %bb.30:
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	jne	.LBB12_31
# %bb.32:
	leaq	48(%rsp), %r13
	leaq	32(%rsp), %rsi
	movq	%r13, %rdi
	callq	gettimeofday
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%r13), %xmm0
	movsd	%xmm0, 40(%rsp)                 # 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%r13), %xmm0
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movq	%r12, %rdi
	movl	$1, %esi
	movabsq	$4294967808, %rdx               # imm = 0x100000200
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB12_34
# %bb.33:
	movq	24(%rsp), %rdi
	movq	16(%rsp), %rsi
	movl	$16777216, %edx                 # imm = 0x1000000
	callq	_Z35__device_stub__reduceNeighboredLessPdS_j
.LBB12_34:
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	jne	.LBB12_35
# %bb.36:
	leaq	48(%rsp), %r13
	leaq	32(%rsp), %rsi
	movq	%r13, %rdi
	callq	gettimeofday
	movq	(%r13), %r15
	movq	8(%r13), %r13
	movq	16(%rsp), %rsi
	movl	$262144, %edx                   # imm = 0x40000
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB12_37
# %bb.38:                               # %.lr.ph.preheader.i385
	movsd	8(%rsp), %xmm2                  # 8-byte Reload
                                        # xmm2 = mem[0],zero
	mulsd	.LCPI12_0(%rip), %xmm2
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r13, %xmm1
	mulsd	.LCPI12_0(%rip), %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r15, %xmm0
	addsd	40(%rsp), %xmm2                 # 8-byte Folded Reload
	addsd	%xmm1, %xmm0
	xorpd	%xmm1, %xmm1
	xorl	%eax, %eax
.LBB12_39:                              # %.lr.ph.i387
                                        # =>This Inner Loop Header: Depth=1
	addsd	(%r14,%rax,8), %xmm1
	incq	%rax
	cmpq	$32768, %rax                    # imm = 0x8000
	jne	.LBB12_39
# %bb.40:                               # %_Z6sumGPUPdi.exit392
	subsd	%xmm2, %xmm0
	movl	$.L.str.10, %edi
	movl	$32768, %esi                    # imm = 0x8000
	movl	$512, %edx                      # imm = 0x200
	movb	$2, %al
	callq	printf
	movq	24(%rsp), %rdi
	movl	$134217728, %edx                # imm = 0x8000000
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB12_41
# %bb.42:
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	jne	.LBB12_43
# %bb.44:
	leaq	48(%rsp), %r13
	leaq	32(%rsp), %rsi
	movq	%r13, %rdi
	callq	gettimeofday
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%r13), %xmm0
	movsd	%xmm0, 40(%rsp)                 # 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%r13), %xmm0
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movq	%r12, %rdi
	movl	$1, %esi
	movabsq	$4294967808, %rdx               # imm = 0x100000200
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB12_46
# %bb.45:
	movq	24(%rsp), %rdi
	movq	16(%rsp), %rsi
	movl	$16777216, %edx                 # imm = 0x1000000
	callq	_Z32__device_stub__reduceInterleavedPdS_j
.LBB12_46:
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	jne	.LBB12_47
# %bb.48:
	leaq	48(%rsp), %r12
	leaq	32(%rsp), %rsi
	movq	%r12, %rdi
	callq	gettimeofday
	movq	(%r12), %r15
	movq	8(%r12), %r12
	movq	16(%rsp), %rsi
	movl	$262144, %edx                   # imm = 0x40000
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB12_49
# %bb.50:                               # %.lr.ph.preheader.i394
	movsd	8(%rsp), %xmm2                  # 8-byte Reload
                                        # xmm2 = mem[0],zero
	mulsd	.LCPI12_0(%rip), %xmm2
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r12, %xmm1
	mulsd	.LCPI12_0(%rip), %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r15, %xmm0
	addsd	40(%rsp), %xmm2                 # 8-byte Folded Reload
	addsd	%xmm1, %xmm0
	xorpd	%xmm1, %xmm1
	xorl	%eax, %eax
.LBB12_51:                              # %.lr.ph.i396
                                        # =>This Inner Loop Header: Depth=1
	addsd	(%r14,%rax,8), %xmm1
	incq	%rax
	cmpq	$32768, %rax                    # imm = 0x8000
	jne	.LBB12_51
# %bb.52:                               # %_Z6sumGPUPdi.exit401
	subsd	%xmm2, %xmm0
	movl	$.L.str.11, %edi
	movl	$32768, %esi                    # imm = 0x8000
	movl	$512, %edx                      # imm = 0x200
	movb	$2, %al
	callq	printf
	movq	24(%rsp), %rdi
	movl	$134217728, %edx                # imm = 0x8000000
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB12_53
# %bb.54:
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	jne	.LBB12_55
# %bb.56:
	leaq	48(%rsp), %r12
	leaq	32(%rsp), %rsi
	movq	%r12, %rdi
	callq	gettimeofday
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%r12), %xmm0
	movsd	%xmm0, 40(%rsp)                 # 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%r12), %xmm0
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movabsq	$4294967808, %rdx               # imm = 0x100000200
	leaq	15872(%rdx), %rdi
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB12_58
# %bb.57:
	movq	24(%rsp), %rdi
	movq	16(%rsp), %rsi
	movl	$16777216, %edx                 # imm = 0x1000000
	callq	_Z31__device_stub__reduceUnrolling2PdS_j
.LBB12_58:
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	jne	.LBB12_59
# %bb.60:
	leaq	48(%rsp), %r12
	leaq	32(%rsp), %rsi
	movq	%r12, %rdi
	callq	gettimeofday
	movq	(%r12), %r15
	movq	8(%r12), %r12
	movq	16(%rsp), %rsi
	movl	$131072, %edx                   # imm = 0x20000
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB12_61
# %bb.62:                               # %.lr.ph.preheader.i403
	movsd	8(%rsp), %xmm2                  # 8-byte Reload
                                        # xmm2 = mem[0],zero
	mulsd	.LCPI12_0(%rip), %xmm2
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r12, %xmm1
	mulsd	.LCPI12_0(%rip), %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r15, %xmm0
	addsd	40(%rsp), %xmm2                 # 8-byte Folded Reload
	addsd	%xmm1, %xmm0
	xorpd	%xmm1, %xmm1
	xorl	%eax, %eax
.LBB12_63:                              # %.lr.ph.i405
                                        # =>This Inner Loop Header: Depth=1
	addsd	(%r14,%rax,8), %xmm1
	incq	%rax
	cmpq	$16384, %rax                    # imm = 0x4000
	jne	.LBB12_63
# %bb.64:                               # %_Z6sumGPUPdi.exit410
	subsd	%xmm2, %xmm0
	movl	$.L.str.12, %edi
	movl	$16384, %esi                    # imm = 0x4000
	movl	$512, %edx                      # imm = 0x200
	movb	$2, %al
	callq	printf
	movq	24(%rsp), %rdi
	movl	$134217728, %edx                # imm = 0x8000000
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB12_65
# %bb.66:
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	jne	.LBB12_67
# %bb.68:
	leaq	48(%rsp), %r12
	leaq	32(%rsp), %rsi
	movq	%r12, %rdi
	callq	gettimeofday
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%r12), %xmm0
	movsd	%xmm0, 40(%rsp)                 # 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%r12), %xmm0
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movabsq	$4294967808, %rdx               # imm = 0x100000200
	leaq	7680(%rdx), %rdi
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB12_70
# %bb.69:
	movq	24(%rsp), %rdi
	movq	16(%rsp), %rsi
	movl	$16777216, %edx                 # imm = 0x1000000
	callq	_Z31__device_stub__reduceUnrolling4PdS_j
.LBB12_70:
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	jne	.LBB12_71
# %bb.72:
	leaq	48(%rsp), %r12
	leaq	32(%rsp), %rsi
	movq	%r12, %rdi
	callq	gettimeofday
	movq	(%r12), %r15
	movq	8(%r12), %r12
	movq	16(%rsp), %rsi
	movl	$65536, %edx                    # imm = 0x10000
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB12_73
# %bb.74:                               # %.lr.ph.preheader.i412
	movsd	8(%rsp), %xmm2                  # 8-byte Reload
                                        # xmm2 = mem[0],zero
	mulsd	.LCPI12_0(%rip), %xmm2
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r12, %xmm1
	mulsd	.LCPI12_0(%rip), %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r15, %xmm0
	addsd	40(%rsp), %xmm2                 # 8-byte Folded Reload
	addsd	%xmm1, %xmm0
	xorpd	%xmm1, %xmm1
	xorl	%eax, %eax
.LBB12_75:                              # %.lr.ph.i414
                                        # =>This Inner Loop Header: Depth=1
	addsd	(%r14,%rax,8), %xmm1
	incq	%rax
	cmpq	$8192, %rax                     # imm = 0x2000
	jne	.LBB12_75
# %bb.76:                               # %_Z6sumGPUPdi.exit419
	subsd	%xmm2, %xmm0
	movl	$.L.str.13, %edi
	movl	$8192, %esi                     # imm = 0x2000
	movl	$512, %edx                      # imm = 0x200
	movb	$2, %al
	callq	printf
	movq	24(%rsp), %rdi
	movl	$134217728, %edx                # imm = 0x8000000
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB12_77
# %bb.78:
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	jne	.LBB12_79
# %bb.80:
	leaq	48(%rsp), %r12
	leaq	32(%rsp), %rsi
	movq	%r12, %rdi
	callq	gettimeofday
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%r12), %xmm0
	movsd	%xmm0, 40(%rsp)                 # 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%r12), %xmm0
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movabsq	$4294967808, %rdx               # imm = 0x100000200
	leaq	3584(%rdx), %r12
	movq	%r12, %rdi
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB12_82
# %bb.81:
	movq	24(%rsp), %rdi
	movq	16(%rsp), %rsi
	movl	$16777216, %edx                 # imm = 0x1000000
	callq	_Z31__device_stub__reduceUnrolling8PdS_j
.LBB12_82:
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	jne	.LBB12_83
# %bb.84:
	leaq	48(%rsp), %r13
	leaq	32(%rsp), %rsi
	movq	%r13, %rdi
	callq	gettimeofday
	movq	(%r13), %r15
	movq	8(%r13), %r13
	movq	16(%rsp), %rsi
	movl	$32768, %edx                    # imm = 0x8000
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB12_85
# %bb.86:                               # %.lr.ph.preheader.i421
	movsd	8(%rsp), %xmm2                  # 8-byte Reload
                                        # xmm2 = mem[0],zero
	mulsd	.LCPI12_0(%rip), %xmm2
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r13, %xmm1
	mulsd	.LCPI12_0(%rip), %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r15, %xmm0
	addsd	40(%rsp), %xmm2                 # 8-byte Folded Reload
	addsd	%xmm1, %xmm0
	xorpd	%xmm1, %xmm1
	xorl	%eax, %eax
.LBB12_87:                              # %.lr.ph.i423
                                        # =>This Inner Loop Header: Depth=1
	addsd	(%r14,%rax,8), %xmm1
	incq	%rax
	cmpq	$4096, %rax                     # imm = 0x1000
	jne	.LBB12_87
# %bb.88:                               # %_Z6sumGPUPdi.exit428
	subsd	%xmm2, %xmm0
	movl	$.L.str.14, %edi
	movl	$4096, %esi                     # imm = 0x1000
	movl	$512, %edx                      # imm = 0x200
	movb	$2, %al
	callq	printf
	movq	24(%rsp), %rdi
	movl	$134217728, %edx                # imm = 0x8000000
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB12_89
# %bb.90:
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	jne	.LBB12_91
# %bb.92:
	leaq	48(%rsp), %r13
	leaq	32(%rsp), %rsi
	movq	%r13, %rdi
	callq	gettimeofday
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%r13), %xmm0
	movsd	%xmm0, 40(%rsp)                 # 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%r13), %xmm0
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movq	%r12, %rdi
	movl	$1, %esi
	movabsq	$4294967808, %rdx               # imm = 0x100000200
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB12_94
# %bb.93:
	movq	24(%rsp), %rdi
	movq	16(%rsp), %rsi
	movl	$16777216, %edx                 # imm = 0x1000000
	callq	_Z33__device_stub__reduceUnrollWarps8PdS_j
.LBB12_94:
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	jne	.LBB12_95
# %bb.96:
	leaq	48(%rsp), %r13
	leaq	32(%rsp), %rsi
	movq	%r13, %rdi
	callq	gettimeofday
	movq	(%r13), %r15
	movq	8(%r13), %r13
	movq	16(%rsp), %rsi
	movl	$32768, %edx                    # imm = 0x8000
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB12_97
# %bb.98:                               # %.lr.ph.preheader.i430
	movsd	8(%rsp), %xmm2                  # 8-byte Reload
                                        # xmm2 = mem[0],zero
	mulsd	.LCPI12_0(%rip), %xmm2
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r13, %xmm1
	mulsd	.LCPI12_0(%rip), %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r15, %xmm0
	addsd	40(%rsp), %xmm2                 # 8-byte Folded Reload
	addsd	%xmm1, %xmm0
	xorpd	%xmm1, %xmm1
	xorl	%eax, %eax
.LBB12_99:                              # %.lr.ph.i432
                                        # =>This Inner Loop Header: Depth=1
	addsd	(%r14,%rax,8), %xmm1
	incq	%rax
	cmpq	$4096, %rax                     # imm = 0x1000
	jne	.LBB12_99
# %bb.100:                              # %_Z6sumGPUPdi.exit437
	subsd	%xmm2, %xmm0
	movl	$.L.str.15, %edi
	movl	$4096, %esi                     # imm = 0x1000
	movl	$512, %edx                      # imm = 0x200
	movb	$2, %al
	callq	printf
	movq	24(%rsp), %rdi
	movl	$134217728, %edx                # imm = 0x8000000
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB12_101
# %bb.102:
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	jne	.LBB12_103
# %bb.104:
	leaq	48(%rsp), %r13
	leaq	32(%rsp), %rsi
	movq	%r13, %rdi
	callq	gettimeofday
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%r13), %xmm0
	movsd	%xmm0, 40(%rsp)                 # 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%r13), %xmm0
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movq	%r12, %rdi
	movl	$1, %esi
	movabsq	$4294967808, %rdx               # imm = 0x100000200
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB12_106
# %bb.105:
	movq	24(%rsp), %rdi
	movq	16(%rsp), %rsi
	movl	$16777216, %edx                 # imm = 0x1000000
	callq	_Z41__device_stub__reduceCompleteUnrollWarps8PdS_j
.LBB12_106:
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	jne	.LBB12_107
# %bb.108:
	leaq	48(%rsp), %r13
	leaq	32(%rsp), %rsi
	movq	%r13, %rdi
	callq	gettimeofday
	movq	(%r13), %r15
	movq	8(%r13), %r13
	movq	16(%rsp), %rsi
	movl	$32768, %edx                    # imm = 0x8000
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB12_109
# %bb.110:                              # %.lr.ph.preheader.i439
	movsd	8(%rsp), %xmm2                  # 8-byte Reload
                                        # xmm2 = mem[0],zero
	mulsd	.LCPI12_0(%rip), %xmm2
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r13, %xmm1
	mulsd	.LCPI12_0(%rip), %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r15, %xmm0
	addsd	40(%rsp), %xmm2                 # 8-byte Folded Reload
	addsd	%xmm1, %xmm0
	xorpd	%xmm1, %xmm1
	xorl	%eax, %eax
.LBB12_111:                             # %.lr.ph.i441
                                        # =>This Inner Loop Header: Depth=1
	addsd	(%r14,%rax,8), %xmm1
	incq	%rax
	cmpq	$4096, %rax                     # imm = 0x1000
	jne	.LBB12_111
# %bb.112:                              # %_Z6sumGPUPdi.exit446
	subsd	%xmm2, %xmm0
	movl	$.L.str.16, %edi
	movl	$4096, %esi                     # imm = 0x1000
	movl	$512, %edx                      # imm = 0x200
	movb	$2, %al
	callq	printf
	movq	24(%rsp), %rdi
	movl	$134217728, %edx                # imm = 0x8000000
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB12_113
# %bb.114:
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	jne	.LBB12_115
# %bb.116:
	leaq	48(%rsp), %r13
	leaq	32(%rsp), %rsi
	movq	%r13, %rdi
	callq	gettimeofday
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%r13), %xmm0
	movsd	%xmm0, 40(%rsp)                 # 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sdq	8(%r13), %xmm0
	movsd	%xmm0, 8(%rsp)                  # 8-byte Spill
	movq	%r12, %rdi
	movl	$1, %esi
	movabsq	$4294967808, %rdx               # imm = 0x100000200
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	__hipPushCallConfiguration
	testl	%eax, %eax
	jne	.LBB12_118
# %bb.117:
	movq	24(%rsp), %rdi
	movq	16(%rsp), %rsi
	movl	$16777216, %edx                 # imm = 0x1000000
	callq	_Z35__device_stub__reduceCompleteUnrollILj512EEvPdS0_j
.LBB12_118:
	callq	hipDeviceSynchronize
	testl	%eax, %eax
	jne	.LBB12_119
# %bb.120:
	leaq	48(%rsp), %r15
	leaq	32(%rsp), %rsi
	movq	%r15, %rdi
	callq	gettimeofday
	movq	(%r15), %r12
	movq	8(%r15), %r15
	movq	16(%rsp), %rsi
	movl	$32768, %edx                    # imm = 0x8000
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	hipMemcpy
	testl	%eax, %eax
	jne	.LBB12_121
# %bb.122:                              # %.lr.ph.preheader.i448
	movsd	8(%rsp), %xmm2                  # 8-byte Reload
                                        # xmm2 = mem[0],zero
	mulsd	.LCPI12_0(%rip), %xmm2
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r15, %xmm1
	mulsd	.LCPI12_0(%rip), %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r12, %xmm0
	addsd	40(%rsp), %xmm2                 # 8-byte Folded Reload
	addsd	%xmm1, %xmm0
	xorpd	%xmm1, %xmm1
	xorl	%eax, %eax
.LBB12_123:                             # %.lr.ph.i450
                                        # =>This Inner Loop Header: Depth=1
	addsd	(%r14,%rax,8), %xmm1
	incq	%rax
	cmpq	$4096, %rax                     # imm = 0x1000
	jne	.LBB12_123
# %bb.124:                              # %_Z6sumGPUPdi.exit455
	subsd	%xmm2, %xmm0
	movl	$.L.str.17, %edi
	movsd	%xmm1, 8(%rsp)                  # 8-byte Spill
	movl	$4096, %esi                     # imm = 0x1000
	movl	$512, %edx                      # imm = 0x200
	movb	$2, %al
	callq	printf
	movq	%rbx, %rdi
	callq	free
	movq	%r14, %rdi
	callq	free
	movq	24(%rsp), %rdi
	callq	hipFree
	testl	%eax, %eax
	jne	.LBB12_125
# %bb.126:
	movq	16(%rsp), %rdi
	callq	hipFree
	testl	%eax, %eax
	jne	.LBB12_127
# %bb.128:
	callq	hipDeviceReset
	testl	%eax, %eax
	jne	.LBB12_129
# %bb.130:
	movl	$.L.str.18, %edi
	movsd	64(%rsp), %xmm0                 # 8-byte Reload
                                        # xmm0 = mem[0],zero
	movsd	8(%rsp), %xmm1                  # 8-byte Reload
                                        # xmm1 = mem[0],zero
	movb	$2, %al
	callq	printf
	xorl	%eax, %eax
	addq	$1544, %rsp                     # imm = 0x608
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%r12
	.cfi_def_cfa_offset 40
	popq	%r13
	.cfi_def_cfa_offset 32
	popq	%r14
	.cfi_def_cfa_offset 24
	popq	%r15
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	retq
.LBB12_1:
	.cfi_def_cfa_offset 1600
	movl	%eax, %ebx
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$441, %edx                      # imm = 0x1B9
	jmp	.LBB12_2
.LBB12_5:
	movl	%eax, %ebx
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$443, %edx                      # imm = 0x1BB
	jmp	.LBB12_2
.LBB12_7:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$473, %edx                      # imm = 0x1D9
	jmp	.LBB12_8
.LBB12_10:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$474, %edx                      # imm = 0x1DA
	jmp	.LBB12_8
.LBB12_17:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$484, %edx                      # imm = 0x1E4
	jmp	.LBB12_8
.LBB12_19:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$485, %edx                      # imm = 0x1E5
	jmp	.LBB12_8
.LBB12_23:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$488, %edx                      # imm = 0x1E8
	jmp	.LBB12_8
.LBB12_25:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$490, %edx                      # imm = 0x1EA
	jmp	.LBB12_8
.LBB12_29:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$495, %edx                      # imm = 0x1EF
	jmp	.LBB12_8
.LBB12_31:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$496, %edx                      # imm = 0x1F0
	jmp	.LBB12_8
.LBB12_35:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$499, %edx                      # imm = 0x1F3
	jmp	.LBB12_8
.LBB12_37:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$501, %edx                      # imm = 0x1F5
	jmp	.LBB12_8
.LBB12_41:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$506, %edx                      # imm = 0x1FA
	jmp	.LBB12_8
.LBB12_43:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$507, %edx                      # imm = 0x1FB
	jmp	.LBB12_8
.LBB12_47:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$510, %edx                      # imm = 0x1FE
	jmp	.LBB12_8
.LBB12_49:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$512, %edx                      # imm = 0x200
	jmp	.LBB12_8
.LBB12_53:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$517, %edx                      # imm = 0x205
	jmp	.LBB12_8
.LBB12_55:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$518, %edx                      # imm = 0x206
	jmp	.LBB12_8
.LBB12_59:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$521, %edx                      # imm = 0x209
	jmp	.LBB12_8
.LBB12_61:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$523, %edx                      # imm = 0x20B
	jmp	.LBB12_8
.LBB12_65:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$528, %edx                      # imm = 0x210
	jmp	.LBB12_8
.LBB12_67:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$529, %edx                      # imm = 0x211
	jmp	.LBB12_8
.LBB12_71:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$532, %edx                      # imm = 0x214
	jmp	.LBB12_8
.LBB12_73:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$534, %edx                      # imm = 0x216
	jmp	.LBB12_8
.LBB12_77:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$539, %edx                      # imm = 0x21B
	jmp	.LBB12_8
.LBB12_79:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$540, %edx                      # imm = 0x21C
	jmp	.LBB12_8
.LBB12_83:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$543, %edx                      # imm = 0x21F
	jmp	.LBB12_8
.LBB12_85:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$545, %edx                      # imm = 0x221
	jmp	.LBB12_8
.LBB12_89:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$550, %edx                      # imm = 0x226
	jmp	.LBB12_8
.LBB12_91:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$551, %edx                      # imm = 0x227
	jmp	.LBB12_8
.LBB12_95:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$554, %edx                      # imm = 0x22A
	jmp	.LBB12_8
.LBB12_97:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$556, %edx                      # imm = 0x22C
	jmp	.LBB12_8
.LBB12_101:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$561, %edx                      # imm = 0x231
	jmp	.LBB12_8
.LBB12_103:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$562, %edx                      # imm = 0x232
	jmp	.LBB12_8
.LBB12_107:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$565, %edx                      # imm = 0x235
	jmp	.LBB12_8
.LBB12_109:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$567, %edx                      # imm = 0x237
	jmp	.LBB12_8
.LBB12_113:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$572, %edx                      # imm = 0x23C
	jmp	.LBB12_8
.LBB12_115:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$573, %edx                      # imm = 0x23D
	jmp	.LBB12_8
.LBB12_119:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$597, %edx                      # imm = 0x255
	jmp	.LBB12_8
.LBB12_121:
	movl	%eax, %ebp
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$599, %edx                      # imm = 0x257
.LBB12_8:
	xorl	%eax, %eax
	callq	printf
	movl	%ebp, %edi
	callq	hipGetErrorString
	movl	$.L.str.3, %edi
	movl	%ebp, %esi
.LBB12_3:
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	printf
	movl	$1, %edi
	callq	exit
.LBB12_125:
	movl	%eax, %ebx
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$608, %edx                      # imm = 0x260
	jmp	.LBB12_2
.LBB12_127:
	movl	%eax, %ebx
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$609, %edx                      # imm = 0x261
	jmp	.LBB12_2
.LBB12_129:
	movl	%eax, %ebx
	movl	$.L.str.1, %edi
	movl	$.L.str.2, %esi
	movl	$612, %edx                      # imm = 0x264
.LBB12_2:
	xorl	%eax, %eax
	callq	printf
	movl	%ebx, %edi
	callq	hipGetErrorString
	movl	$.L.str.3, %edi
	movl	%ebx, %esi
	jmp	.LBB12_3
.Lfunc_end12:
	.size	main, .Lfunc_end12-main
	.cfi_endproc
                                        # -- End function
	.section	.text._Z35__device_stub__reduceCompleteUnrollILj512EEvPdS0_j,"axG",@progbits,_Z35__device_stub__reduceCompleteUnrollILj512EEvPdS0_j,comdat
	.weak	_Z35__device_stub__reduceCompleteUnrollILj512EEvPdS0_j # -- Begin function _Z35__device_stub__reduceCompleteUnrollILj512EEvPdS0_j
	.type	_Z35__device_stub__reduceCompleteUnrollILj512EEvPdS0_j,@function
_Z35__device_stub__reduceCompleteUnrollILj512EEvPdS0_j: # @_Z35__device_stub__reduceCompleteUnrollILj512EEvPdS0_j
	.cfi_startproc
# %bb.0:
	pushq	%r15
	.cfi_def_cfa_offset 16
	pushq	%r14
	.cfi_def_cfa_offset 24
	pushq	%r13
	.cfi_def_cfa_offset 32
	pushq	%r12
	.cfi_def_cfa_offset 40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	subq	$112, %rsp
	.cfi_def_cfa_offset 160
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r13, -32
	.cfi_offset %r14, -24
	.cfi_offset %r15, -16
	leaq	40(%rsp), %rax
	movq	%rdi, (%rax)
	leaq	32(%rsp), %rcx
	movq	%rsi, (%rcx)
	leaq	12(%rsp), %rsi
	movl	%edx, (%rsi)
	leaq	80(%rsp), %rbx
	movq	%rax, (%rbx)
	movq	%rcx, 8(%rbx)
	movq	%rsi, 16(%rbx)
	leaq	64(%rsp), %r14
	leaq	48(%rsp), %r15
	leaq	24(%rsp), %r12
	leaq	16(%rsp), %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	__hipPopCallConfiguration
	movq	(%r14), %rsi
	movl	8(%r14), %edx
	movq	(%r15), %rcx
	movl	8(%r15), %r8d
	movl	$_Z20reduceCompleteUnrollILj512EEvPdS0_j, %edi
	movq	%rbx, %r9
	pushq	(%r13)
	.cfi_adjust_cfa_offset 8
	pushq	(%r12)
	.cfi_adjust_cfa_offset 8
	callq	hipLaunchKernel
	addq	$128, %rsp
	.cfi_adjust_cfa_offset -128
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	retq
.Lfunc_end13:
	.size	_Z35__device_stub__reduceCompleteUnrollILj512EEvPdS0_j, .Lfunc_end13-_Z35__device_stub__reduceCompleteUnrollILj512EEvPdS0_j
	.cfi_endproc
                                        # -- End function
	.text
	.p2align	4, 0x90                         # -- Begin function __hip_module_ctor
	.type	__hip_module_ctor,@function
__hip_module_ctor:                      # @__hip_module_ctor
	.cfi_startproc
# %bb.0:
	pushq	%rbx
	.cfi_def_cfa_offset 16
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	.cfi_offset %rbx, -16
	movq	__hip_gpubin_handle(%rip), %rbx
	testq	%rbx, %rbx
	jne	.LBB14_2
# %bb.1:
	movl	$__hip_fatbin_wrapper, %edi
	callq	__hipRegisterFatBinary
	movq	%rax, %rbx
	movq	%rax, __hip_gpubin_handle(%rip)
.LBB14_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z16reduceNeighboredPdS_j, %esi
	movl	$.L__unnamed_1, %edx
	movl	$.L__unnamed_1, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z20reduceNeighboredLessPdS_j, %esi
	movl	$.L__unnamed_2, %edx
	movl	$.L__unnamed_2, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z17reduceInterleavedPdS_j, %esi
	movl	$.L__unnamed_3, %edx
	movl	$.L__unnamed_3, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z16reduceUnrolling2PdS_j, %esi
	movl	$.L__unnamed_4, %edx
	movl	$.L__unnamed_4, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z16reduceUnrolling4PdS_j, %esi
	movl	$.L__unnamed_5, %edx
	movl	$.L__unnamed_5, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z16reduceUnrolling8PdS_j, %esi
	movl	$.L__unnamed_6, %edx
	movl	$.L__unnamed_6, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z18reduceUnrollWarps8PdS_j, %esi
	movl	$.L__unnamed_7, %edx
	movl	$.L__unnamed_7, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z26reduceCompleteUnrollWarps8PdS_j, %esi
	movl	$.L__unnamed_8, %edx
	movl	$.L__unnamed_8, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z17reduceUnrollWarpsPdS_j, %esi
	movl	$.L__unnamed_9, %edx
	movl	$.L__unnamed_9, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rsp)
	movups	%xmm0, (%rsp)
	movl	$_Z20reduceCompleteUnrollILj512EEvPdS0_j, %esi
	movl	$.L__unnamed_10, %edx
	movl	$.L__unnamed_10, %ecx
	movq	%rbx, %rdi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	__hipRegisterFunction
	movl	$__hip_module_dtor, %edi
	addq	$32, %rsp
	.cfi_def_cfa_offset 16
	popq	%rbx
	.cfi_def_cfa_offset 8
	jmp	atexit                          # TAILCALL
.Lfunc_end14:
	.size	__hip_module_ctor, .Lfunc_end14-__hip_module_ctor
	.cfi_endproc
                                        # -- End function
	.p2align	4, 0x90                         # -- Begin function __hip_module_dtor
	.type	__hip_module_dtor,@function
__hip_module_dtor:                      # @__hip_module_dtor
	.cfi_startproc
# %bb.0:
	movq	__hip_gpubin_handle(%rip), %rdi
	testq	%rdi, %rdi
	je	.LBB15_2
# %bb.1:
	pushq	%rax
	.cfi_def_cfa_offset 16
	callq	__hipUnregisterFatBinary
	movq	$0, __hip_gpubin_handle(%rip)
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
.LBB15_2:
	retq
.Lfunc_end15:
	.size	__hip_module_dtor, .Lfunc_end15-__hip_module_dtor
	.cfi_endproc
                                        # -- End function
	.type	_Z16reduceNeighboredPdS_j,@object # @_Z16reduceNeighboredPdS_j
	.section	.rodata,"a",@progbits
	.globl	_Z16reduceNeighboredPdS_j
	.p2align	3, 0x0
_Z16reduceNeighboredPdS_j:
	.quad	_Z31__device_stub__reduceNeighboredPdS_j
	.size	_Z16reduceNeighboredPdS_j, 8

	.type	_Z20reduceNeighboredLessPdS_j,@object # @_Z20reduceNeighboredLessPdS_j
	.globl	_Z20reduceNeighboredLessPdS_j
	.p2align	3, 0x0
_Z20reduceNeighboredLessPdS_j:
	.quad	_Z35__device_stub__reduceNeighboredLessPdS_j
	.size	_Z20reduceNeighboredLessPdS_j, 8

	.type	_Z17reduceInterleavedPdS_j,@object # @_Z17reduceInterleavedPdS_j
	.globl	_Z17reduceInterleavedPdS_j
	.p2align	3, 0x0
_Z17reduceInterleavedPdS_j:
	.quad	_Z32__device_stub__reduceInterleavedPdS_j
	.size	_Z17reduceInterleavedPdS_j, 8

	.type	_Z16reduceUnrolling2PdS_j,@object # @_Z16reduceUnrolling2PdS_j
	.globl	_Z16reduceUnrolling2PdS_j
	.p2align	3, 0x0
_Z16reduceUnrolling2PdS_j:
	.quad	_Z31__device_stub__reduceUnrolling2PdS_j
	.size	_Z16reduceUnrolling2PdS_j, 8

	.type	_Z16reduceUnrolling4PdS_j,@object # @_Z16reduceUnrolling4PdS_j
	.globl	_Z16reduceUnrolling4PdS_j
	.p2align	3, 0x0
_Z16reduceUnrolling4PdS_j:
	.quad	_Z31__device_stub__reduceUnrolling4PdS_j
	.size	_Z16reduceUnrolling4PdS_j, 8

	.type	_Z16reduceUnrolling8PdS_j,@object # @_Z16reduceUnrolling8PdS_j
	.globl	_Z16reduceUnrolling8PdS_j
	.p2align	3, 0x0
_Z16reduceUnrolling8PdS_j:
	.quad	_Z31__device_stub__reduceUnrolling8PdS_j
	.size	_Z16reduceUnrolling8PdS_j, 8

	.type	_Z18reduceUnrollWarps8PdS_j,@object # @_Z18reduceUnrollWarps8PdS_j
	.globl	_Z18reduceUnrollWarps8PdS_j
	.p2align	3, 0x0
_Z18reduceUnrollWarps8PdS_j:
	.quad	_Z33__device_stub__reduceUnrollWarps8PdS_j
	.size	_Z18reduceUnrollWarps8PdS_j, 8

	.type	_Z26reduceCompleteUnrollWarps8PdS_j,@object # @_Z26reduceCompleteUnrollWarps8PdS_j
	.globl	_Z26reduceCompleteUnrollWarps8PdS_j
	.p2align	3, 0x0
_Z26reduceCompleteUnrollWarps8PdS_j:
	.quad	_Z41__device_stub__reduceCompleteUnrollWarps8PdS_j
	.size	_Z26reduceCompleteUnrollWarps8PdS_j, 8

	.type	_Z17reduceUnrollWarpsPdS_j,@object # @_Z17reduceUnrollWarpsPdS_j
	.globl	_Z17reduceUnrollWarpsPdS_j
	.p2align	3, 0x0
_Z17reduceUnrollWarpsPdS_j:
	.quad	_Z32__device_stub__reduceUnrollWarpsPdS_j
	.size	_Z17reduceUnrollWarpsPdS_j, 8

	.type	.L.str.1,@object                # @.str.1
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.1:
	.asciz	"Error: %s:%d, "
	.size	.L.str.1, 15

	.type	.L.str.2,@object                # @.str.2
.L.str.2:
	.asciz	"/home/ubuntu/Datasets/stackv2/train-structured-repos-hip-sm89/hmthanh/paralell_programming/master/BT_4/sumVector_main.hip"
	.size	.L.str.2, 122

	.type	.L.str.3,@object                # @.str.3
.L.str.3:
	.asciz	"code:%d, reason: %s\n"
	.size	.L.str.3, 21

	.type	.L.str.4,@object                # @.str.4
.L.str.4:
	.asciz	"Device %d: %s \n"
	.size	.L.str.4, 16

	.type	.L.str.5,@object                # @.str.5
.L.str.5:
	.asciz	"K\303\255ch th\306\260\341\273\233c m\341\272\243ng : %d\n"
	.size	.L.str.5, 28

	.type	.L.str.6,@object                # @.str.6
.L.str.6:
	.asciz	"K\303\255ch th\306\260\341\273\233c : <<<Grid (%d, %d), Block (%d, %d)>>>\n"
	.size	.L.str.6, 54

	.type	.L.str.8,@object                # @.str.8
.L.str.8:
	.asciz	"1 | %f sec\t| %f\t|\t\t | recursiveReduce-CPU\n"
	.size	.L.str.8, 43

	.type	.L.str.9,@object                # @.str.9
.L.str.9:
	.asciz	"2 | %f sec\t| %f\t|<<<%d, %d>>> | reduceNeighbored\n"
	.size	.L.str.9, 50

	.type	.L.str.10,@object               # @.str.10
.L.str.10:
	.asciz	"3 | %f sec\t| %f\t|<<<%d, %d>>> | reduceNeighboredLess\n"
	.size	.L.str.10, 54

	.type	.L.str.11,@object               # @.str.11
.L.str.11:
	.asciz	"4 | %f sec\t| %f\t|<<<%d, %d>>> | reduceInterleaved\n"
	.size	.L.str.11, 51

	.type	.L.str.12,@object               # @.str.12
.L.str.12:
	.asciz	"5 | %f sec\t| %f\t|<<<%d, %d>>> | reduceUnrolling2\n"
	.size	.L.str.12, 50

	.type	.L.str.13,@object               # @.str.13
.L.str.13:
	.asciz	"6 | %f sec\t| %f\t|<<<%d, %d>>> | reduceUnrolling4\n"
	.size	.L.str.13, 50

	.type	.L.str.14,@object               # @.str.14
.L.str.14:
	.asciz	"7 | %f sec\t| %f\t|<<<%d, %d>>> | reduceUnrolling8\n"
	.size	.L.str.14, 50

	.type	.L.str.15,@object               # @.str.15
.L.str.15:
	.asciz	"8 | %f sec\t| %f\t|<<<%d, %d>>> | reduceUnrollWarps8\n"
	.size	.L.str.15, 52

	.type	.L.str.16,@object               # @.str.16
.L.str.16:
	.asciz	"9 | %f sec\t| %f\t|<<<%d, %d>>> | reduceCompleteUnrollWarsp8\n"
	.size	.L.str.16, 60

	.type	_Z20reduceCompleteUnrollILj512EEvPdS0_j,@object # @_Z20reduceCompleteUnrollILj512EEvPdS0_j
	.section	.rodata._Z20reduceCompleteUnrollILj512EEvPdS0_j,"aG",@progbits,_Z20reduceCompleteUnrollILj512EEvPdS0_j,comdat
	.weak	_Z20reduceCompleteUnrollILj512EEvPdS0_j
	.p2align	3, 0x0
_Z20reduceCompleteUnrollILj512EEvPdS0_j:
	.quad	_Z35__device_stub__reduceCompleteUnrollILj512EEvPdS0_j
	.size	_Z20reduceCompleteUnrollILj512EEvPdS0_j, 8

	.type	.L.str.17,@object               # @.str.17
	.section	.rodata.str1.1,"aMS",@progbits,1
.L.str.17:
	.asciz	"10| %f sec\t| %f\t|<<<%d, %d>>> | reduceCompleteUnroll\n"
	.size	.L.str.17, 54

	.type	.L.str.18,@object               # @.str.18
.L.str.18:
	.asciz	"Sum on CPU : %f\nSum on GPU : %f"
	.size	.L.str.18, 32

	.type	.L__unnamed_1,@object           # @0
.L__unnamed_1:
	.asciz	"_Z16reduceNeighboredPdS_j"
	.size	.L__unnamed_1, 26

	.type	.L__unnamed_2,@object           # @1
.L__unnamed_2:
	.asciz	"_Z20reduceNeighboredLessPdS_j"
	.size	.L__unnamed_2, 30

	.type	.L__unnamed_3,@object           # @2
.L__unnamed_3:
	.asciz	"_Z17reduceInterleavedPdS_j"
	.size	.L__unnamed_3, 27

	.type	.L__unnamed_4,@object           # @3
.L__unnamed_4:
	.asciz	"_Z16reduceUnrolling2PdS_j"
	.size	.L__unnamed_4, 26

	.type	.L__unnamed_5,@object           # @4
.L__unnamed_5:
	.asciz	"_Z16reduceUnrolling4PdS_j"
	.size	.L__unnamed_5, 26

	.type	.L__unnamed_6,@object           # @5
.L__unnamed_6:
	.asciz	"_Z16reduceUnrolling8PdS_j"
	.size	.L__unnamed_6, 26

	.type	.L__unnamed_7,@object           # @6
.L__unnamed_7:
	.asciz	"_Z18reduceUnrollWarps8PdS_j"
	.size	.L__unnamed_7, 28

	.type	.L__unnamed_8,@object           # @7
.L__unnamed_8:
	.asciz	"_Z26reduceCompleteUnrollWarps8PdS_j"
	.size	.L__unnamed_8, 36

	.type	.L__unnamed_9,@object           # @8
.L__unnamed_9:
	.asciz	"_Z17reduceUnrollWarpsPdS_j"
	.size	.L__unnamed_9, 27

	.type	.L__unnamed_10,@object          # @9
.L__unnamed_10:
	.asciz	"_Z20reduceCompleteUnrollILj512EEvPdS0_j"
	.size	.L__unnamed_10, 40

	.type	__hip_fatbin_wrapper,@object    # @__hip_fatbin_wrapper
	.section	.hipFatBinSegment,"a",@progbits
	.p2align	3, 0x0
__hip_fatbin_wrapper:
	.long	1212764230                      # 0x48495046
	.long	1                               # 0x1
	.quad	__hip_fatbin
	.quad	0
	.size	__hip_fatbin_wrapper, 24

	.type	__hip_gpubin_handle,@object     # @__hip_gpubin_handle
	.local	__hip_gpubin_handle
	.comm	__hip_gpubin_handle,8,8
	.section	.init_array,"aw",@init_array
	.p2align	3, 0x0
	.quad	__hip_module_ctor
	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.type	.Lstr,@object                   # @str
	.section	.rodata.str1.1,"aMS",@progbits,1
.Lstr:
	.asciz	"############ TH\303\224NG TIN GPU ############"
	.size	.Lstr, 41

	.type	.Lstr.1,@object                 # @str.1
.Lstr.1:
	.asciz	"ID| Time \t\t| Sum result \t\t| <<<GridSize, BlockSize >>> | Kernel\t\t"
	.size	.Lstr.1, 66

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym _Z31__device_stub__reduceNeighboredPdS_j
	.addrsig_sym _Z35__device_stub__reduceNeighboredLessPdS_j
	.addrsig_sym _Z32__device_stub__reduceInterleavedPdS_j
	.addrsig_sym _Z31__device_stub__reduceUnrolling2PdS_j
	.addrsig_sym _Z31__device_stub__reduceUnrolling4PdS_j
	.addrsig_sym _Z31__device_stub__reduceUnrolling8PdS_j
	.addrsig_sym _Z33__device_stub__reduceUnrollWarps8PdS_j
	.addrsig_sym _Z41__device_stub__reduceCompleteUnrollWarps8PdS_j
	.addrsig_sym _Z32__device_stub__reduceUnrollWarpsPdS_j
	.addrsig_sym _Z35__device_stub__reduceCompleteUnrollILj512EEvPdS0_j
	.addrsig_sym __hip_module_ctor
	.addrsig_sym __hip_module_dtor
	.addrsig_sym _Z16reduceNeighboredPdS_j
	.addrsig_sym _Z20reduceNeighboredLessPdS_j
	.addrsig_sym _Z17reduceInterleavedPdS_j
	.addrsig_sym _Z16reduceUnrolling2PdS_j
	.addrsig_sym _Z16reduceUnrolling4PdS_j
	.addrsig_sym _Z16reduceUnrolling8PdS_j
	.addrsig_sym _Z18reduceUnrollWarps8PdS_j
	.addrsig_sym _Z26reduceCompleteUnrollWarps8PdS_j
	.addrsig_sym _Z17reduceUnrollWarpsPdS_j
	.addrsig_sym _Z20reduceCompleteUnrollILj512EEvPdS0_j
	.addrsig_sym __hip_fatbin
	.addrsig_sym __hip_fatbin_wrapper
	.addrsig_sym __hip_cuid_

	.text
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.protected	_Z16reduceNeighboredPdS_j ; -- Begin function _Z16reduceNeighboredPdS_j
	.globl	_Z16reduceNeighboredPdS_j
	.p2align	8
	.type	_Z16reduceNeighboredPdS_j,@function
_Z16reduceNeighboredPdS_j:              ; @_Z16reduceNeighboredPdS_j
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s3, s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s5, s2, 0xffff
	s_mov_b32 s2, exec_lo
	s_mul_i32 s6, s15, s5
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v1, s6, v0
	v_cmpx_gt_u32_e64 s3, v1
	s_cbranch_execz .LBB0_8
; %bb.1:                                ; %.preheader
	s_load_b128 s[0:3], s[0:1], 0x0
	s_mov_b32 s7, 0
	s_mov_b32 s4, s15
	s_lshl_b64 s[6:7], s[6:7], 3
	s_waitcnt lgkmcnt(0)
	s_add_u32 s0, s0, s6
	s_addc_u32 s1, s1, s7
	s_cmp_lt_u32 s5, 2
	s_cbranch_scc1 .LBB0_6
; %bb.2:                                ; %.lr.ph
	v_lshlrev_b32_e32 v1, 3, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v1, s6, s0, v1
	v_add_co_ci_u32_e64 v2, null, s1, 0, s6
	s_mov_b32 s6, 1
.LBB0_3:                                ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(SALU_CYCLE_1)
	s_lshl_b32 s8, s6, 1
	s_mov_b32 s9, exec_lo
	s_add_i32 s7, s8, -1
	v_and_b32_e32 v3, s7, v0
	s_delay_alu instid0(VALU_DEP_1)
	v_cmpx_eq_u32_e32 0, v3
	s_cbranch_execz .LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	s_ashr_i32 s7, s6, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b64 s[6:7], s[6:7], 3
	v_add_co_u32 v3, vcc_lo, v1, s6
	v_add_co_ci_u32_e32 v4, vcc_lo, s7, v2, vcc_lo
	s_clause 0x1
	global_load_b64 v[3:4], v[3:4], off
	global_load_b64 v[5:6], v[1:2], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[3:4], v[3:4], v[5:6]
	global_store_b64 v[1:2], v[3:4], off
.LBB0_5:                                ;   in Loop: Header=BB0_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s9
	s_cmp_ge_u32 s8, s5
	s_mov_b32 s6, s8
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_cbranch_scc0 .LBB0_3
.LBB0_6:                                ; %._crit_edge
	v_cmp_eq_u32_e32 vcc_lo, 0, v0
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB0_8
; %bb.7:
	v_mov_b32_e32 v2, 0
	s_mov_b32 s5, 0
	global_load_b64 v[0:1], v2, s[0:1]
	s_lshl_b64 s[0:1], s[4:5], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s0, s2, s0
	s_addc_u32 s1, s3, s1
	s_waitcnt vmcnt(0)
	global_store_b64 v2, v[0:1], s[0:1]
.LBB0_8:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z16reduceNeighboredPdS_j
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 7
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end0:
	.size	_Z16reduceNeighboredPdS_j, .Lfunc_end0-_Z16reduceNeighboredPdS_j
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 324
; NumSgprs: 18
; NumVgprs: 7
; ScratchSize: 0
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 7
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z20reduceNeighboredLessPdS_j ; -- Begin function _Z20reduceNeighboredLessPdS_j
	.globl	_Z20reduceNeighboredLessPdS_j
	.p2align	8
	.type	_Z20reduceNeighboredLessPdS_j,@function
_Z20reduceNeighboredLessPdS_j:          ; @_Z20reduceNeighboredLessPdS_j
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s3, s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s5, s2, 0xffff
	s_mov_b32 s2, exec_lo
	s_mul_i32 s6, s15, s5
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v1, s6, v0
	v_cmpx_gt_u32_e64 s3, v1
	s_cbranch_execz .LBB1_8
; %bb.1:                                ; %.preheader
	s_load_b128 s[0:3], s[0:1], 0x0
	s_mov_b32 s7, 0
	s_mov_b32 s4, s15
	s_lshl_b64 s[6:7], s[6:7], 3
	s_waitcnt lgkmcnt(0)
	s_add_u32 s0, s0, s6
	s_addc_u32 s1, s1, s7
	s_cmp_lt_u32 s5, 2
	s_cbranch_scc1 .LBB1_6
; %bb.2:                                ; %.lr.ph.preheader
	v_mov_b32_e32 v2, 0
	s_mov_b32 s6, 1
.LBB1_3:                                ; %.lr.ph
                                        ; =>This Inner Loop Header: Depth=1
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(SKIP_2) | instid1(VALU_DEP_1)
	s_lshl_b32 s8, s6, 1
	s_mov_b32 s9, exec_lo
	v_mul_lo_u32 v1, s8, v0
	v_cmpx_gt_u32_e64 s5, v1
	s_cbranch_execz .LBB1_5
; %bb.4:                                ;   in Loop: Header=BB1_3 Depth=1
	v_lshlrev_b64 v[3:4], 3, v[1:2]
	s_ashr_i32 s7, s6, 31
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	s_lshl_b64 s[6:7], s[6:7], 3
	v_add_co_u32 v3, vcc_lo, s0, v3
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v4, vcc_lo
	v_add_co_u32 v5, vcc_lo, v3, s6
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v6, vcc_lo, s7, v4, vcc_lo
	s_clause 0x1
	global_load_b64 v[5:6], v[5:6], off
	global_load_b64 v[7:8], v[3:4], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[5:6], v[5:6], v[7:8]
	global_store_b64 v[3:4], v[5:6], off
.LBB1_5:                                ;   in Loop: Header=BB1_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s9
	s_cmp_ge_u32 s8, s5
	s_mov_b32 s6, s8
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_cbranch_scc0 .LBB1_3
.LBB1_6:                                ; %._crit_edge
	v_cmp_eq_u32_e32 vcc_lo, 0, v0
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB1_8
; %bb.7:
	v_mov_b32_e32 v2, 0
	s_mov_b32 s5, 0
	global_load_b64 v[0:1], v2, s[0:1]
	s_lshl_b64 s[0:1], s[4:5], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s0, s2, s0
	s_addc_u32 s1, s3, s1
	s_waitcnt vmcnt(0)
	global_store_b64 v2, v[0:1], s[0:1]
.LBB1_8:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z20reduceNeighboredLessPdS_j
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 9
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end1:
	.size	_Z20reduceNeighboredLessPdS_j, .Lfunc_end1-_Z20reduceNeighboredLessPdS_j
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 332
; NumSgprs: 18
; NumVgprs: 9
; ScratchSize: 0
; MemoryBound: 0
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 9
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z17reduceInterleavedPdS_j ; -- Begin function _Z17reduceInterleavedPdS_j
	.globl	_Z17reduceInterleavedPdS_j
	.p2align	8
	.type	_Z17reduceInterleavedPdS_j,@function
_Z17reduceInterleavedPdS_j:             ; @_Z17reduceInterleavedPdS_j
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s3, s[0:1], 0x10
	s_waitcnt lgkmcnt(0)
	s_and_b32 s5, s2, 0xffff
	s_mov_b32 s2, exec_lo
	s_mul_i32 s6, s15, s5
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v1, s6, v0
	v_cmpx_gt_u32_e64 s3, v1
	s_cbranch_execz .LBB2_8
; %bb.1:                                ; %.preheader
	s_load_b128 s[0:3], s[0:1], 0x0
	s_mov_b32 s7, 0
	s_mov_b32 s4, s15
	s_lshl_b64 s[8:9], s[6:7], 3
	s_waitcnt lgkmcnt(0)
	s_add_u32 s0, s0, s8
	s_addc_u32 s1, s1, s9
	s_cmp_lt_u32 s5, 2
	s_cbranch_scc1 .LBB2_6
; %bb.2:                                ; %.lr.ph
	v_lshlrev_b32_e32 v1, 3, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v1, s6, s0, v1
	v_add_co_ci_u32_e64 v2, null, s1, 0, s6
.LBB2_3:                                ; =>This Inner Loop Header: Depth=1
	s_lshr_b32 s6, s5, 1
	s_mov_b32 s8, exec_lo
	v_cmpx_gt_u32_e64 s6, v0
	s_cbranch_execz .LBB2_5
; %bb.4:                                ;   in Loop: Header=BB2_3 Depth=1
	s_lshl_b64 s[10:11], s[6:7], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	v_add_co_u32 v3, vcc_lo, v1, s10
	v_add_co_ci_u32_e32 v4, vcc_lo, s11, v2, vcc_lo
	s_clause 0x1
	global_load_b64 v[3:4], v[3:4], off
	global_load_b64 v[5:6], v[1:2], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[3:4], v[3:4], v[5:6]
	global_store_b64 v[1:2], v[3:4], off
.LBB2_5:                                ;   in Loop: Header=BB2_3 Depth=1
	s_or_b32 exec_lo, exec_lo, s8
	s_cmp_lt_u32 s5, 4
	s_mov_b32 s5, s6
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_cbranch_scc0 .LBB2_3
.LBB2_6:                                ; %._crit_edge
	v_cmp_eq_u32_e32 vcc_lo, 0, v0
	s_and_b32 exec_lo, exec_lo, vcc_lo
	s_cbranch_execz .LBB2_8
; %bb.7:
	v_mov_b32_e32 v2, 0
	s_mov_b32 s5, 0
	global_load_b64 v[0:1], v2, s[0:1]
	s_lshl_b64 s[0:1], s[4:5], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s0, s2, s0
	s_addc_u32 s1, s3, s1
	s_waitcnt vmcnt(0)
	global_store_b64 v2, v[0:1], s[0:1]
.LBB2_8:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z17reduceInterleavedPdS_j
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 7
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end2:
	.size	_Z17reduceInterleavedPdS_j, .Lfunc_end2-_Z17reduceInterleavedPdS_j
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 304
; NumSgprs: 18
; NumVgprs: 7
; ScratchSize: 0
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 7
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z16reduceUnrolling2PdS_j ; -- Begin function _Z16reduceUnrolling2PdS_j
	.globl	_Z16reduceUnrolling2PdS_j
	.p2align	8
	.type	_Z16reduceUnrolling2PdS_j,@function
_Z16reduceUnrolling2PdS_j:              ; @_Z16reduceUnrolling2PdS_j
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s7, s[0:1], 0x10
	s_mov_b32 s4, s15
	s_waitcnt lgkmcnt(0)
	s_and_b32 s5, s2, 0xffff
	s_load_b128 s[0:3], s[0:1], 0x0
	s_mul_i32 s6, s15, s5
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b32 s6, s6, 1
	v_add_nc_u32_e32 v1, s6, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v3, s5, v1
	v_cmp_gt_u32_e32 vcc_lo, s7, v3
	s_and_saveexec_b32 s7, vcc_lo
	s_cbranch_execz .LBB3_2
; %bb.1:
	v_mov_b32_e32 v2, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mov_b32_e32 v4, v2
	v_lshlrev_b64 v[1:2], 3, v[1:2]
	v_lshlrev_b64 v[3:4], 3, v[3:4]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v3, vcc_lo, s0, v3
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v4, vcc_lo
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v1, vcc_lo, s0, v1
	v_add_co_ci_u32_e32 v2, vcc_lo, s1, v2, vcc_lo
	s_clause 0x1
	global_load_b64 v[3:4], v[3:4], off
	global_load_b64 v[5:6], v[1:2], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[3:4], v[3:4], v[5:6]
	global_store_b64 v[1:2], v[3:4], off
.LBB3_2:
	s_or_b32 exec_lo, exec_lo, s7
	s_mov_b32 s7, 0
	s_waitcnt lgkmcnt(0)
	s_waitcnt_vscnt null, 0x0
	s_lshl_b64 s[8:9], s[6:7], 3
	s_barrier
	s_add_u32 s0, s0, s8
	s_addc_u32 s1, s1, s9
	s_cmp_lt_u32 s5, 2
	buffer_gl0_inv
	s_cbranch_scc1 .LBB3_7
; %bb.3:                                ; %.lr.ph
	v_lshlrev_b32_e32 v1, 3, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v1, s6, s0, v1
	v_add_co_ci_u32_e64 v2, null, s1, 0, s6
.LBB3_4:                                ; =>This Inner Loop Header: Depth=1
	s_lshr_b32 s6, s5, 1
	s_mov_b32 s8, exec_lo
	v_cmpx_gt_u32_e64 s6, v0
	s_cbranch_execz .LBB3_6
; %bb.5:                                ;   in Loop: Header=BB3_4 Depth=1
	s_lshl_b64 s[10:11], s[6:7], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	v_add_co_u32 v3, vcc_lo, v1, s10
	v_add_co_ci_u32_e32 v4, vcc_lo, s11, v2, vcc_lo
	s_clause 0x1
	global_load_b64 v[3:4], v[3:4], off
	global_load_b64 v[5:6], v[1:2], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[3:4], v[3:4], v[5:6]
	global_store_b64 v[1:2], v[3:4], off
.LBB3_6:                                ;   in Loop: Header=BB3_4 Depth=1
	s_or_b32 exec_lo, exec_lo, s8
	s_cmp_lt_u32 s5, 4
	s_mov_b32 s5, s6
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_cbranch_scc0 .LBB3_4
.LBB3_7:                                ; %._crit_edge
	s_mov_b32 s5, exec_lo
	v_cmpx_eq_u32_e32 0, v0
	s_cbranch_execz .LBB3_9
; %bb.8:
	v_mov_b32_e32 v2, 0
	s_mov_b32 s5, 0
	global_load_b64 v[0:1], v2, s[0:1]
	s_lshl_b64 s[0:1], s[4:5], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s0, s2, s0
	s_addc_u32 s1, s3, s1
	s_waitcnt vmcnt(0)
	global_store_b64 v2, v[0:1], s[0:1]
.LBB3_9:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z16reduceUnrolling2PdS_j
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 7
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end3:
	.size	_Z16reduceUnrolling2PdS_j, .Lfunc_end3-_Z16reduceUnrolling2PdS_j
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 436
; NumSgprs: 18
; NumVgprs: 7
; ScratchSize: 0
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 7
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z16reduceUnrolling4PdS_j ; -- Begin function _Z16reduceUnrolling4PdS_j
	.globl	_Z16reduceUnrolling4PdS_j
	.p2align	8
	.type	_Z16reduceUnrolling4PdS_j,@function
_Z16reduceUnrolling4PdS_j:              ; @_Z16reduceUnrolling4PdS_j
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s7, s[0:1], 0x10
	s_mov_b32 s4, s15
	s_waitcnt lgkmcnt(0)
	s_and_b32 s5, s2, 0xffff
	s_load_b128 s[0:3], s[0:1], 0x0
	s_mul_i32 s6, s15, s5
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b32 s6, s6, 2
	v_add_nc_u32_e32 v1, s6, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[3:4], null, s5, 3, v[1:2]
	v_cmp_gt_u32_e32 vcc_lo, s7, v3
	s_and_saveexec_b32 s7, vcc_lo
	s_cbranch_execz .LBB4_2
; %bb.1:
	v_mov_b32_e32 v2, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s5, v1
	v_lshlrev_b64 v[6:7], 3, v[1:2]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v8, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v9, vcc_lo, s1, v5, vcc_lo
	v_add_nc_u32_e32 v1, s5, v1
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v4, vcc_lo, s0, v6
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v7, vcc_lo
	s_clause 0x1
	global_load_b64 v[6:7], v[8:9], off
	global_load_b64 v[10:11], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[12:13], v[4:5], off
	v_mov_b32_e32 v4, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[1:2], 3, v[3:4]
	v_add_co_u32 v1, vcc_lo, s0, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v2, vcc_lo, s1, v2, vcc_lo
	global_load_b64 v[1:2], v[1:2], off
	s_waitcnt vmcnt(2)
	v_add_f64 v[3:4], v[6:7], v[10:11]
	s_waitcnt vmcnt(1)
	v_add_f64 v[3:4], v[3:4], v[12:13]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[1:2], v[3:4], v[1:2]
	global_store_b64 v[8:9], v[1:2], off
.LBB4_2:
	s_or_b32 exec_lo, exec_lo, s7
	s_mov_b32 s7, 0
	s_waitcnt lgkmcnt(0)
	s_waitcnt_vscnt null, 0x0
	s_lshl_b64 s[8:9], s[6:7], 3
	s_barrier
	s_add_u32 s0, s0, s8
	s_addc_u32 s1, s1, s9
	s_cmp_lt_u32 s5, 2
	buffer_gl0_inv
	s_cbranch_scc1 .LBB4_7
; %bb.3:                                ; %.lr.ph
	v_lshlrev_b32_e32 v1, 3, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v1, s6, s0, v1
	v_add_co_ci_u32_e64 v2, null, s1, 0, s6
.LBB4_4:                                ; =>This Inner Loop Header: Depth=1
	s_lshr_b32 s6, s5, 1
	s_mov_b32 s8, exec_lo
	v_cmpx_gt_u32_e64 s6, v0
	s_cbranch_execz .LBB4_6
; %bb.5:                                ;   in Loop: Header=BB4_4 Depth=1
	s_lshl_b64 s[10:11], s[6:7], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	v_add_co_u32 v3, vcc_lo, v1, s10
	v_add_co_ci_u32_e32 v4, vcc_lo, s11, v2, vcc_lo
	s_clause 0x1
	global_load_b64 v[3:4], v[3:4], off
	global_load_b64 v[5:6], v[1:2], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[3:4], v[3:4], v[5:6]
	global_store_b64 v[1:2], v[3:4], off
.LBB4_6:                                ;   in Loop: Header=BB4_4 Depth=1
	s_or_b32 exec_lo, exec_lo, s8
	s_cmp_lt_u32 s5, 4
	s_mov_b32 s5, s6
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_cbranch_scc0 .LBB4_4
.LBB4_7:                                ; %._crit_edge
	s_mov_b32 s5, exec_lo
	v_cmpx_eq_u32_e32 0, v0
	s_cbranch_execz .LBB4_9
; %bb.8:
	v_mov_b32_e32 v2, 0
	s_mov_b32 s5, 0
	global_load_b64 v[0:1], v2, s[0:1]
	s_lshl_b64 s[0:1], s[4:5], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s0, s2, s0
	s_addc_u32 s1, s3, s1
	s_waitcnt vmcnt(0)
	global_store_b64 v2, v[0:1], s[0:1]
.LBB4_9:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z16reduceUnrolling4PdS_j
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 14
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end4:
	.size	_Z16reduceUnrolling4PdS_j, .Lfunc_end4-_Z16reduceUnrolling4PdS_j
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 544
; NumSgprs: 18
; NumVgprs: 14
; ScratchSize: 0
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 1
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 14
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z16reduceUnrolling8PdS_j ; -- Begin function _Z16reduceUnrolling8PdS_j
	.globl	_Z16reduceUnrolling8PdS_j
	.p2align	8
	.type	_Z16reduceUnrolling8PdS_j,@function
_Z16reduceUnrolling8PdS_j:              ; @_Z16reduceUnrolling8PdS_j
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s7, s[0:1], 0x10
	s_mov_b32 s4, s15
	s_waitcnt lgkmcnt(0)
	s_and_b32 s5, s2, 0xffff
	s_load_b128 s[0:3], s[0:1], 0x0
	s_mul_i32 s6, s15, s5
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b32 s6, s6, 3
	v_add_nc_u32_e32 v1, s6, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[3:4], null, s5, 7, v[1:2]
	v_cmp_gt_u32_e32 vcc_lo, s7, v3
	s_and_saveexec_b32 s7, vcc_lo
	s_cbranch_execz .LBB5_2
; %bb.1:
	v_mov_b32_e32 v2, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s5, v1
	v_lshlrev_b64 v[6:7], 3, v[1:2]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v8, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v9, vcc_lo, s1, v5, vcc_lo
	v_add_nc_u32_e32 v1, s5, v1
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v4, vcc_lo, s0, v6
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v7, vcc_lo
	s_clause 0x1
	global_load_b64 v[6:7], v[8:9], off
	global_load_b64 v[10:11], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s5, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[12:13], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s5, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[14:15], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s5, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[16:17], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s5, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[18:19], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[20:21], v[4:5], off
	v_mov_b32_e32 v4, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[1:2], 3, v[3:4]
	v_add_co_u32 v1, vcc_lo, s0, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v2, vcc_lo, s1, v2, vcc_lo
	global_load_b64 v[1:2], v[1:2], off
	s_waitcnt vmcnt(6)
	v_add_f64 v[3:4], v[6:7], v[10:11]
	s_waitcnt vmcnt(5)
	v_add_f64 v[3:4], v[3:4], v[12:13]
	s_waitcnt vmcnt(4)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[3:4], v[3:4], v[14:15]
	s_waitcnt vmcnt(3)
	v_add_f64 v[3:4], v[3:4], v[16:17]
	s_waitcnt vmcnt(2)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[3:4], v[3:4], v[18:19]
	s_waitcnt vmcnt(1)
	v_add_f64 v[3:4], v[3:4], v[20:21]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[1:2], v[3:4], v[1:2]
	global_store_b64 v[8:9], v[1:2], off
.LBB5_2:
	s_or_b32 exec_lo, exec_lo, s7
	s_mov_b32 s7, 0
	s_waitcnt lgkmcnt(0)
	s_waitcnt_vscnt null, 0x0
	s_lshl_b64 s[8:9], s[6:7], 3
	s_barrier
	s_add_u32 s0, s0, s8
	s_addc_u32 s1, s1, s9
	s_cmp_lt_u32 s5, 2
	buffer_gl0_inv
	s_cbranch_scc1 .LBB5_7
; %bb.3:                                ; %.lr.ph
	v_lshlrev_b32_e32 v1, 3, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v1, s6, s0, v1
	v_add_co_ci_u32_e64 v2, null, s1, 0, s6
.LBB5_4:                                ; =>This Inner Loop Header: Depth=1
	s_lshr_b32 s6, s5, 1
	s_mov_b32 s8, exec_lo
	v_cmpx_gt_u32_e64 s6, v0
	s_cbranch_execz .LBB5_6
; %bb.5:                                ;   in Loop: Header=BB5_4 Depth=1
	s_lshl_b64 s[10:11], s[6:7], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	v_add_co_u32 v3, vcc_lo, v1, s10
	v_add_co_ci_u32_e32 v4, vcc_lo, s11, v2, vcc_lo
	s_clause 0x1
	global_load_b64 v[3:4], v[3:4], off
	global_load_b64 v[5:6], v[1:2], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[3:4], v[3:4], v[5:6]
	global_store_b64 v[1:2], v[3:4], off
.LBB5_6:                                ;   in Loop: Header=BB5_4 Depth=1
	s_or_b32 exec_lo, exec_lo, s8
	s_cmp_lt_u32 s5, 4
	s_mov_b32 s5, s6
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_cbranch_scc0 .LBB5_4
.LBB5_7:                                ; %._crit_edge
	s_mov_b32 s5, exec_lo
	v_cmpx_eq_u32_e32 0, v0
	s_cbranch_execz .LBB5_9
; %bb.8:
	v_mov_b32_e32 v2, 0
	s_mov_b32 s5, 0
	global_load_b64 v[0:1], v2, s[0:1]
	s_lshl_b64 s[0:1], s[4:5], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s0, s2, s0
	s_addc_u32 s1, s3, s1
	s_waitcnt vmcnt(0)
	global_store_b64 v2, v[0:1], s[0:1]
.LBB5_9:
	s_nop 0
	s_sendmsg sendmsg(MSG_DEALLOC_VGPRS)
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z16reduceUnrolling8PdS_j
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 22
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end5:
	.size	_Z16reduceUnrolling8PdS_j, .Lfunc_end5-_Z16reduceUnrolling8PdS_j
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 744
; NumSgprs: 18
; NumVgprs: 22
; ScratchSize: 0
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 22
; Occupancy: 16
; WaveLimiterHint : 0
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z18reduceUnrollWarps8PdS_j ; -- Begin function _Z18reduceUnrollWarps8PdS_j
	.globl	_Z18reduceUnrollWarps8PdS_j
	.p2align	8
	.type	_Z18reduceUnrollWarps8PdS_j,@function
_Z18reduceUnrollWarps8PdS_j:            ; @_Z18reduceUnrollWarps8PdS_j
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s7, s[0:1], 0x10
	s_mov_b32 s4, s15
	s_waitcnt lgkmcnt(0)
	s_and_b32 s5, s2, 0xffff
	s_load_b128 s[0:3], s[0:1], 0x0
	s_mul_i32 s6, s15, s5
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b32 s6, s6, 3
	v_add_nc_u32_e32 v1, s6, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[3:4], null, s5, 7, v[1:2]
	v_cmp_gt_u32_e32 vcc_lo, s7, v3
	s_and_saveexec_b32 s7, vcc_lo
	s_cbranch_execz .LBB6_2
; %bb.1:
	v_mov_b32_e32 v2, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s5, v1
	v_lshlrev_b64 v[6:7], 3, v[1:2]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v8, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v9, vcc_lo, s1, v5, vcc_lo
	v_add_nc_u32_e32 v1, s5, v1
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v4, vcc_lo, s0, v6
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v7, vcc_lo
	s_clause 0x1
	global_load_b64 v[6:7], v[8:9], off
	global_load_b64 v[10:11], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s5, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[12:13], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s5, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[14:15], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s5, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[16:17], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s5, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[18:19], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[20:21], v[4:5], off
	v_mov_b32_e32 v4, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[1:2], 3, v[3:4]
	v_add_co_u32 v1, vcc_lo, s0, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v2, vcc_lo, s1, v2, vcc_lo
	global_load_b64 v[1:2], v[1:2], off
	s_waitcnt vmcnt(6)
	v_add_f64 v[3:4], v[6:7], v[10:11]
	s_waitcnt vmcnt(5)
	v_add_f64 v[3:4], v[3:4], v[12:13]
	s_waitcnt vmcnt(4)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[3:4], v[3:4], v[14:15]
	s_waitcnt vmcnt(3)
	v_add_f64 v[3:4], v[3:4], v[16:17]
	s_waitcnt vmcnt(2)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[3:4], v[3:4], v[18:19]
	s_waitcnt vmcnt(1)
	v_add_f64 v[3:4], v[3:4], v[20:21]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[1:2], v[3:4], v[1:2]
	global_store_b64 v[8:9], v[1:2], off
.LBB6_2:
	s_or_b32 exec_lo, exec_lo, s7
	s_mov_b32 s7, 0
	v_lshlrev_b32_e32 v3, 3, v0
	s_lshl_b64 s[8:9], s[6:7], 3
	s_waitcnt lgkmcnt(0)
	s_waitcnt_vscnt null, 0x0
	s_add_u32 s0, s0, s8
	s_addc_u32 s1, s1, s9
	s_cmpk_lt_u32 s5, 0x42
	s_barrier
	buffer_gl0_inv
	s_cbranch_scc1 .LBB6_7
; %bb.3:                                ; %.lr.ph
	v_add_co_u32 v1, s6, s0, v3
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v2, null, s1, 0, s6
.LBB6_4:                                ; =>This Inner Loop Header: Depth=1
	s_lshr_b32 s6, s5, 1
	s_mov_b32 s8, exec_lo
	v_cmpx_gt_u32_e64 s6, v0
	s_cbranch_execz .LBB6_6
; %bb.5:                                ;   in Loop: Header=BB6_4 Depth=1
	s_lshl_b64 s[10:11], s[6:7], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	v_add_co_u32 v4, vcc_lo, v1, s10
	v_add_co_ci_u32_e32 v5, vcc_lo, s11, v2, vcc_lo
	s_clause 0x1
	global_load_b64 v[4:5], v[4:5], off
	global_load_b64 v[6:7], v[1:2], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[4:5], v[4:5], v[6:7]
	global_store_b64 v[1:2], v[4:5], off
.LBB6_6:                                ;   in Loop: Header=BB6_4 Depth=1
	s_or_b32 exec_lo, exec_lo, s8
	s_cmpk_lt_u32 s5, 0x84
	s_mov_b32 s5, s6
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_cbranch_scc0 .LBB6_4
.LBB6_7:                                ; %._crit_edge
	s_mov_b32 s5, exec_lo
	v_cmpx_gt_u32_e32 32, v0
	s_cbranch_execz .LBB6_9
; %bb.8:
	v_or_b32_e32 v1, 0x100, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v1, s6, s0, v1
	v_add_co_ci_u32_e64 v2, null, s1, 0, s6
	v_add_co_u32 v3, s6, s0, v3
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v4, null, s1, 0, s6
	flat_load_b64 v[1:2], v[1:2] glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[5:6], v[3:4] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[5:6]
	flat_store_b64 v[3:4], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[3:4] offset:128 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[5:6], v[3:4] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[5:6]
	flat_store_b64 v[3:4], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[3:4] offset:64 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[5:6], v[3:4] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[5:6]
	flat_store_b64 v[3:4], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[3:4] offset:32 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[5:6], v[3:4] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[5:6]
	flat_store_b64 v[3:4], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[3:4] offset:16 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[5:6], v[3:4] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[5:6]
	flat_store_b64 v[3:4], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[3:4] offset:8 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[5:6], v[3:4] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[5:6]
	flat_store_b64 v[3:4], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
.LBB6_9:
	s_or_b32 exec_lo, exec_lo, s5
	s_mov_b32 s5, 0
	s_mov_b32 s6, exec_lo
	v_cmpx_eq_u32_e32 0, v0
	s_cbranch_execz .LBB6_11
; %bb.10:
	v_mov_b32_e32 v2, 0
	global_load_b64 v[0:1], v2, s[0:1]
	s_lshl_b64 s[0:1], s[4:5], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s0, s2, s0
	s_addc_u32 s1, s3, s1
	s_waitcnt vmcnt(0)
	global_store_b64 v2, v[0:1], s[0:1]
.LBB6_11:
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z18reduceUnrollWarps8PdS_j
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 22
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end6:
	.size	_Z18reduceUnrollWarps8PdS_j, .Lfunc_end6-_Z18reduceUnrollWarps8PdS_j
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1064
; NumSgprs: 18
; NumVgprs: 22
; ScratchSize: 0
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 22
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z26reduceCompleteUnrollWarps8PdS_j ; -- Begin function _Z26reduceCompleteUnrollWarps8PdS_j
	.globl	_Z26reduceCompleteUnrollWarps8PdS_j
	.p2align	8
	.type	_Z26reduceCompleteUnrollWarps8PdS_j,@function
_Z26reduceCompleteUnrollWarps8PdS_j:    ; @_Z26reduceCompleteUnrollWarps8PdS_j
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s7, s[0:1], 0x10
	s_mov_b32 s4, s15
	s_waitcnt lgkmcnt(0)
	s_and_b32 s5, s2, 0xffff
	s_load_b128 s[0:3], s[0:1], 0x0
	s_mul_i32 s6, s15, s5
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b32 s6, s6, 3
	v_add_nc_u32_e32 v1, s6, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[3:4], null, s5, 7, v[1:2]
	v_cmp_gt_u32_e32 vcc_lo, s7, v3
	s_and_saveexec_b32 s7, vcc_lo
	s_cbranch_execz .LBB7_2
; %bb.1:
	v_mov_b32_e32 v2, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s5, v1
	v_lshlrev_b64 v[6:7], 3, v[1:2]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v8, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v9, vcc_lo, s1, v5, vcc_lo
	v_add_nc_u32_e32 v1, s5, v1
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v4, vcc_lo, s0, v6
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v7, vcc_lo
	s_clause 0x1
	global_load_b64 v[6:7], v[8:9], off
	global_load_b64 v[10:11], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s5, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[12:13], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s5, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[14:15], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s5, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[16:17], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s5, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[18:19], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[20:21], v[4:5], off
	v_mov_b32_e32 v4, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[1:2], 3, v[3:4]
	v_add_co_u32 v1, vcc_lo, s0, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v2, vcc_lo, s1, v2, vcc_lo
	global_load_b64 v[1:2], v[1:2], off
	s_waitcnt vmcnt(6)
	v_add_f64 v[3:4], v[6:7], v[10:11]
	s_waitcnt vmcnt(5)
	v_add_f64 v[3:4], v[3:4], v[12:13]
	s_waitcnt vmcnt(4)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[3:4], v[3:4], v[14:15]
	s_waitcnt vmcnt(3)
	v_add_f64 v[3:4], v[3:4], v[16:17]
	s_waitcnt vmcnt(2)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[3:4], v[3:4], v[18:19]
	s_waitcnt vmcnt(1)
	v_add_f64 v[3:4], v[3:4], v[20:21]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[1:2], v[3:4], v[1:2]
	global_store_b64 v[8:9], v[1:2], off
.LBB7_2:
	s_or_b32 exec_lo, exec_lo, s7
	s_mov_b32 s7, 0
	v_cmp_gt_u32_e32 vcc_lo, 0x200, v0
	s_lshl_b64 s[6:7], s[6:7], 3
	v_lshlrev_b32_e32 v1, 3, v0
	s_waitcnt lgkmcnt(0)
	s_add_u32 s0, s0, s6
	s_addc_u32 s1, s1, s7
	s_cmpk_gt_u32 s5, 0x3ff
	s_waitcnt_vscnt null, 0x0
	s_cselect_b32 s6, -1, 0
	s_barrier
	s_and_b32 s7, vcc_lo, s6
	buffer_gl0_inv
	s_and_saveexec_b32 s6, s7
	s_cbranch_execz .LBB7_4
; %bb.3:
	v_add_co_u32 v2, s7, s0, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_ci_u32_e64 v3, null, s1, 0, s7
	v_add_co_u32 v2, vcc_lo, 0x1000, v2
	s_delay_alu instid0(VALU_DEP_2)
	v_add_co_ci_u32_e32 v3, vcc_lo, 0, v3, vcc_lo
	s_clause 0x1
	global_load_b64 v[2:3], v[2:3], off
	global_load_b64 v[4:5], v1, s[0:1]
	s_waitcnt vmcnt(0)
	v_add_f64 v[2:3], v[2:3], v[4:5]
	global_store_b64 v1, v[2:3], s[0:1]
.LBB7_4:
	s_or_b32 exec_lo, exec_lo, s6
	v_cmp_gt_u32_e32 vcc_lo, 0x100, v0
	s_cmpk_gt_u32 s5, 0x1ff
	s_waitcnt_vscnt null, 0x0
	s_cselect_b32 s6, -1, 0
	s_barrier
	s_and_b32 s7, vcc_lo, s6
	buffer_gl0_inv
	s_and_saveexec_b32 s6, s7
	s_cbranch_execz .LBB7_6
; %bb.5:
	s_clause 0x1
	global_load_b64 v[2:3], v1, s[0:1] offset:2048
	global_load_b64 v[4:5], v1, s[0:1]
	s_waitcnt vmcnt(0)
	v_add_f64 v[2:3], v[2:3], v[4:5]
	global_store_b64 v1, v[2:3], s[0:1]
.LBB7_6:
	s_or_b32 exec_lo, exec_lo, s6
	v_cmp_gt_u32_e32 vcc_lo, 0x80, v0
	s_cmpk_gt_u32 s5, 0xff
	s_waitcnt_vscnt null, 0x0
	s_cselect_b32 s6, -1, 0
	s_barrier
	s_and_b32 s7, vcc_lo, s6
	buffer_gl0_inv
	s_and_saveexec_b32 s6, s7
	s_cbranch_execz .LBB7_8
; %bb.7:
	s_clause 0x1
	global_load_b64 v[2:3], v1, s[0:1] offset:1024
	global_load_b64 v[4:5], v1, s[0:1]
	s_waitcnt vmcnt(0)
	v_add_f64 v[2:3], v[2:3], v[4:5]
	global_store_b64 v1, v[2:3], s[0:1]
.LBB7_8:
	s_or_b32 exec_lo, exec_lo, s6
	v_cmp_gt_u32_e32 vcc_lo, 64, v0
	s_cmpk_gt_u32 s5, 0x7f
	s_waitcnt_vscnt null, 0x0
	s_cselect_b32 s5, -1, 0
	s_barrier
	s_and_b32 s6, vcc_lo, s5
	buffer_gl0_inv
	s_and_saveexec_b32 s5, s6
	s_cbranch_execz .LBB7_10
; %bb.9:
	s_clause 0x1
	global_load_b64 v[2:3], v1, s[0:1] offset:512
	global_load_b64 v[4:5], v1, s[0:1]
	s_waitcnt vmcnt(0)
	v_add_f64 v[2:3], v[2:3], v[4:5]
	global_store_b64 v1, v[2:3], s[0:1]
.LBB7_10:
	s_or_b32 exec_lo, exec_lo, s5
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s5, exec_lo
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e32 32, v0
	s_cbranch_execz .LBB7_12
; %bb.11:
	v_or_b32_e32 v2, 0x100, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v2, s6, s0, v2
	v_add_co_ci_u32_e64 v3, null, s1, 0, s6
	v_add_co_u32 v4, s6, s0, v1
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v5, null, s1, 0, s6
	flat_load_b64 v[1:2], v[2:3] glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:128 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:64 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:32 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:16 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:8 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
.LBB7_12:
	s_or_b32 exec_lo, exec_lo, s5
	s_mov_b32 s5, 0
	s_mov_b32 s6, exec_lo
	v_cmpx_eq_u32_e32 0, v0
	s_cbranch_execz .LBB7_14
; %bb.13:
	v_mov_b32_e32 v2, 0
	global_load_b64 v[0:1], v2, s[0:1]
	s_lshl_b64 s[0:1], s[4:5], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s0, s2, s0
	s_addc_u32 s1, s3, s1
	s_waitcnt vmcnt(0)
	global_store_b64 v2, v[0:1], s[0:1]
.LBB7_14:
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z26reduceCompleteUnrollWarps8PdS_j
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 22
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end7:
	.size	_Z26reduceCompleteUnrollWarps8PdS_j, .Lfunc_end7-_Z26reduceCompleteUnrollWarps8PdS_j
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1316
; NumSgprs: 18
; NumVgprs: 22
; ScratchSize: 0
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 22
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.protected	_Z17reduceUnrollWarpsPdS_j ; -- Begin function _Z17reduceUnrollWarpsPdS_j
	.globl	_Z17reduceUnrollWarpsPdS_j
	.p2align	8
	.type	_Z17reduceUnrollWarpsPdS_j,@function
_Z17reduceUnrollWarpsPdS_j:             ; @_Z17reduceUnrollWarpsPdS_j
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s7, s[0:1], 0x10
	s_mov_b32 s4, s15
	s_waitcnt lgkmcnt(0)
	s_and_b32 s5, s2, 0xffff
	s_load_b128 s[0:3], s[0:1], 0x0
	s_mul_i32 s6, s15, s5
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b32 s6, s6, 1
	v_add_nc_u32_e32 v1, s6, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_nc_u32_e32 v3, s5, v1
	v_cmp_gt_u32_e32 vcc_lo, s7, v3
	s_and_saveexec_b32 s7, vcc_lo
	s_cbranch_execz .LBB8_2
; %bb.1:
	v_mov_b32_e32 v2, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_2)
	v_mov_b32_e32 v4, v2
	v_lshlrev_b64 v[1:2], 3, v[1:2]
	v_lshlrev_b64 v[3:4], 3, v[3:4]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v3, vcc_lo, s0, v3
	v_add_co_ci_u32_e32 v4, vcc_lo, s1, v4, vcc_lo
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v1, vcc_lo, s0, v1
	v_add_co_ci_u32_e32 v2, vcc_lo, s1, v2, vcc_lo
	s_clause 0x1
	global_load_b64 v[3:4], v[3:4], off
	global_load_b64 v[5:6], v[1:2], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[3:4], v[3:4], v[5:6]
	global_store_b64 v[1:2], v[3:4], off
.LBB8_2:
	s_or_b32 exec_lo, exec_lo, s7
	s_mov_b32 s7, 0
	v_lshlrev_b32_e32 v3, 3, v0
	s_lshl_b64 s[8:9], s[6:7], 3
	s_waitcnt lgkmcnt(0)
	s_waitcnt_vscnt null, 0x0
	s_add_u32 s0, s0, s8
	s_addc_u32 s1, s1, s9
	s_cmpk_lt_u32 s5, 0x42
	s_barrier
	buffer_gl0_inv
	s_cbranch_scc1 .LBB8_7
; %bb.3:                                ; %.lr.ph
	v_add_co_u32 v1, s6, s0, v3
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v2, null, s1, 0, s6
.LBB8_4:                                ; =>This Inner Loop Header: Depth=1
	s_lshr_b32 s6, s5, 1
	s_mov_b32 s8, exec_lo
	v_cmpx_gt_u32_e64 s6, v0
	s_cbranch_execz .LBB8_6
; %bb.5:                                ;   in Loop: Header=BB8_4 Depth=1
	s_lshl_b64 s[10:11], s[6:7], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	v_add_co_u32 v4, vcc_lo, v1, s10
	v_add_co_ci_u32_e32 v5, vcc_lo, s11, v2, vcc_lo
	s_clause 0x1
	global_load_b64 v[4:5], v[4:5], off
	global_load_b64 v[6:7], v[1:2], off
	s_waitcnt vmcnt(0)
	v_add_f64 v[4:5], v[4:5], v[6:7]
	global_store_b64 v[1:2], v[4:5], off
.LBB8_6:                                ;   in Loop: Header=BB8_4 Depth=1
	s_or_b32 exec_lo, exec_lo, s8
	s_cmpk_lt_u32 s5, 0x84
	s_mov_b32 s5, s6
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_cbranch_scc0 .LBB8_4
.LBB8_7:                                ; %._crit_edge
	s_mov_b32 s5, exec_lo
	v_cmpx_gt_u32_e32 32, v0
	s_cbranch_execz .LBB8_9
; %bb.8:
	v_or_b32_e32 v1, 0x100, v3
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v1, s6, s0, v1
	v_add_co_ci_u32_e64 v2, null, s1, 0, s6
	v_add_co_u32 v3, s6, s0, v3
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v4, null, s1, 0, s6
	flat_load_b64 v[1:2], v[1:2] glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[5:6], v[3:4] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[5:6]
	flat_store_b64 v[3:4], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[3:4] offset:128 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[5:6], v[3:4] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[5:6]
	flat_store_b64 v[3:4], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[3:4] offset:64 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[5:6], v[3:4] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[5:6]
	flat_store_b64 v[3:4], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[3:4] offset:32 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[5:6], v[3:4] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[5:6]
	flat_store_b64 v[3:4], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[3:4] offset:16 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[5:6], v[3:4] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[5:6]
	flat_store_b64 v[3:4], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[3:4] offset:8 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[5:6], v[3:4] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[5:6]
	flat_store_b64 v[3:4], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
.LBB8_9:
	s_or_b32 exec_lo, exec_lo, s5
	s_mov_b32 s5, 0
	s_mov_b32 s6, exec_lo
	v_cmpx_eq_u32_e32 0, v0
	s_cbranch_execz .LBB8_11
; %bb.10:
	v_mov_b32_e32 v2, 0
	global_load_b64 v[0:1], v2, s[0:1]
	s_lshl_b64 s[0:1], s[4:5], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s0, s2, s0
	s_addc_u32 s1, s3, s1
	s_waitcnt vmcnt(0)
	global_store_b64 v2, v[0:1], s[0:1]
.LBB8_11:
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z17reduceUnrollWarpsPdS_j
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 8
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.text
.Lfunc_end8:
	.size	_Z17reduceUnrollWarpsPdS_j, .Lfunc_end8-_Z17reduceUnrollWarpsPdS_j
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 756
; NumSgprs: 18
; NumVgprs: 8
; ScratchSize: 0
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 0
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 8
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.section	.text._Z20reduceCompleteUnrollILj1024EEvPdS0_j,"axG",@progbits,_Z20reduceCompleteUnrollILj1024EEvPdS0_j,comdat
	.protected	_Z20reduceCompleteUnrollILj1024EEvPdS0_j ; -- Begin function _Z20reduceCompleteUnrollILj1024EEvPdS0_j
	.globl	_Z20reduceCompleteUnrollILj1024EEvPdS0_j
	.p2align	8
	.type	_Z20reduceCompleteUnrollILj1024EEvPdS0_j,@function
_Z20reduceCompleteUnrollILj1024EEvPdS0_j: ; @_Z20reduceCompleteUnrollILj1024EEvPdS0_j
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s5, s[0:1], 0x10
	s_mov_b32 s4, s15
	s_waitcnt lgkmcnt(0)
	s_and_b32 s7, s2, 0xffff
	s_load_b128 s[0:3], s[0:1], 0x0
	s_mul_i32 s6, s15, s7
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b32 s6, s6, 3
	v_add_nc_u32_e32 v1, s6, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[3:4], null, s7, 7, v[1:2]
	v_cmp_gt_u32_e32 vcc_lo, s5, v3
	s_and_saveexec_b32 s5, vcc_lo
	s_cbranch_execz .LBB9_2
; %bb.1:
	v_mov_b32_e32 v2, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	v_lshlrev_b64 v[6:7], 3, v[1:2]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v8, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v9, vcc_lo, s1, v5, vcc_lo
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v4, vcc_lo, s0, v6
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v7, vcc_lo
	s_clause 0x1
	global_load_b64 v[6:7], v[8:9], off
	global_load_b64 v[10:11], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[12:13], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[14:15], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[16:17], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[18:19], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[20:21], v[4:5], off
	v_mov_b32_e32 v4, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[1:2], 3, v[3:4]
	v_add_co_u32 v1, vcc_lo, s0, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v2, vcc_lo, s1, v2, vcc_lo
	global_load_b64 v[1:2], v[1:2], off
	s_waitcnt vmcnt(6)
	v_add_f64 v[3:4], v[6:7], v[10:11]
	s_waitcnt vmcnt(5)
	v_add_f64 v[3:4], v[3:4], v[12:13]
	s_waitcnt vmcnt(4)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[3:4], v[3:4], v[14:15]
	s_waitcnt vmcnt(3)
	v_add_f64 v[3:4], v[3:4], v[16:17]
	s_waitcnt vmcnt(2)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[3:4], v[3:4], v[18:19]
	s_waitcnt vmcnt(1)
	v_add_f64 v[3:4], v[3:4], v[20:21]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[1:2], v[3:4], v[1:2]
	global_store_b64 v[8:9], v[1:2], off
.LBB9_2:
	s_or_b32 exec_lo, exec_lo, s5
	s_mov_b32 s7, 0
	v_lshlrev_b32_e32 v1, 3, v0
	s_lshl_b64 s[6:7], s[6:7], 3
	s_mov_b32 s5, exec_lo
	s_waitcnt lgkmcnt(0)
	s_add_u32 s0, s0, s6
	s_addc_u32 s1, s1, s7
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e32 0x200, v0
	s_cbranch_execz .LBB9_4
; %bb.3:
	v_or_b32_e32 v2, 0x1000, v1
	s_clause 0x1
	global_load_b64 v[2:3], v2, s[0:1]
	global_load_b64 v[4:5], v1, s[0:1]
	s_waitcnt vmcnt(0)
	v_add_f64 v[2:3], v[2:3], v[4:5]
	global_store_b64 v1, v[2:3], s[0:1]
.LBB9_4:
	s_or_b32 exec_lo, exec_lo, s5
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s5, exec_lo
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e32 0x100, v0
	s_cbranch_execz .LBB9_6
; %bb.5:
	v_or_b32_e32 v2, 0x800, v1
	s_clause 0x1
	global_load_b64 v[2:3], v2, s[0:1]
	global_load_b64 v[4:5], v1, s[0:1]
	s_waitcnt vmcnt(0)
	v_add_f64 v[2:3], v[2:3], v[4:5]
	global_store_b64 v1, v[2:3], s[0:1]
.LBB9_6:
	s_or_b32 exec_lo, exec_lo, s5
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s5, exec_lo
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e32 0x80, v0
	s_cbranch_execz .LBB9_8
; %bb.7:
	v_or_b32_e32 v2, 0x400, v1
	s_clause 0x1
	global_load_b64 v[2:3], v2, s[0:1]
	global_load_b64 v[4:5], v1, s[0:1]
	s_waitcnt vmcnt(0)
	v_add_f64 v[2:3], v[2:3], v[4:5]
	global_store_b64 v1, v[2:3], s[0:1]
.LBB9_8:
	s_or_b32 exec_lo, exec_lo, s5
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s5, exec_lo
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e32 64, v0
	s_cbranch_execz .LBB9_10
; %bb.9:
	v_or_b32_e32 v2, 0x200, v1
	s_clause 0x1
	global_load_b64 v[2:3], v2, s[0:1]
	global_load_b64 v[4:5], v1, s[0:1]
	s_waitcnt vmcnt(0)
	v_add_f64 v[2:3], v[2:3], v[4:5]
	global_store_b64 v1, v[2:3], s[0:1]
.LBB9_10:
	s_or_b32 exec_lo, exec_lo, s5
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s5, exec_lo
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e32 32, v0
	s_cbranch_execz .LBB9_12
; %bb.11:
	v_or_b32_e32 v2, 0x100, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v2, s6, s0, v2
	v_add_co_ci_u32_e64 v3, null, s1, 0, s6
	v_add_co_u32 v4, s6, s0, v1
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v5, null, s1, 0, s6
	flat_load_b64 v[1:2], v[2:3] glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:128 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:64 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:32 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:16 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:8 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
.LBB9_12:
	s_or_b32 exec_lo, exec_lo, s5
	s_mov_b32 s5, 0
	s_mov_b32 s6, exec_lo
	v_cmpx_eq_u32_e32 0, v0
	s_cbranch_execz .LBB9_14
; %bb.13:
	v_mov_b32_e32 v2, 0
	global_load_b64 v[0:1], v2, s[0:1]
	s_lshl_b64 s[0:1], s[4:5], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s0, s2, s0
	s_addc_u32 s1, s3, s1
	s_waitcnt vmcnt(0)
	global_store_b64 v2, v[0:1], s[0:1]
.LBB9_14:
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z20reduceCompleteUnrollILj1024EEvPdS0_j
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 22
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.section	.text._Z20reduceCompleteUnrollILj1024EEvPdS0_j,"axG",@progbits,_Z20reduceCompleteUnrollILj1024EEvPdS0_j,comdat
.Lfunc_end9:
	.size	_Z20reduceCompleteUnrollILj1024EEvPdS0_j, .Lfunc_end9-_Z20reduceCompleteUnrollILj1024EEvPdS0_j
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1272
; NumSgprs: 18
; NumVgprs: 22
; ScratchSize: 0
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 22
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.section	.text._Z20reduceCompleteUnrollILj512EEvPdS0_j,"axG",@progbits,_Z20reduceCompleteUnrollILj512EEvPdS0_j,comdat
	.protected	_Z20reduceCompleteUnrollILj512EEvPdS0_j ; -- Begin function _Z20reduceCompleteUnrollILj512EEvPdS0_j
	.globl	_Z20reduceCompleteUnrollILj512EEvPdS0_j
	.p2align	8
	.type	_Z20reduceCompleteUnrollILj512EEvPdS0_j,@function
_Z20reduceCompleteUnrollILj512EEvPdS0_j: ; @_Z20reduceCompleteUnrollILj512EEvPdS0_j
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s5, s[0:1], 0x10
	s_mov_b32 s4, s15
	s_waitcnt lgkmcnt(0)
	s_and_b32 s7, s2, 0xffff
	s_load_b128 s[0:3], s[0:1], 0x0
	s_mul_i32 s6, s15, s7
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b32 s6, s6, 3
	v_add_nc_u32_e32 v1, s6, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[3:4], null, s7, 7, v[1:2]
	v_cmp_gt_u32_e32 vcc_lo, s5, v3
	s_and_saveexec_b32 s5, vcc_lo
	s_cbranch_execz .LBB10_2
; %bb.1:
	v_mov_b32_e32 v2, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	v_lshlrev_b64 v[6:7], 3, v[1:2]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v8, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v9, vcc_lo, s1, v5, vcc_lo
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v4, vcc_lo, s0, v6
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v7, vcc_lo
	s_clause 0x1
	global_load_b64 v[6:7], v[8:9], off
	global_load_b64 v[10:11], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[12:13], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[14:15], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[16:17], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[18:19], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[20:21], v[4:5], off
	v_mov_b32_e32 v4, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[1:2], 3, v[3:4]
	v_add_co_u32 v1, vcc_lo, s0, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v2, vcc_lo, s1, v2, vcc_lo
	global_load_b64 v[1:2], v[1:2], off
	s_waitcnt vmcnt(6)
	v_add_f64 v[3:4], v[6:7], v[10:11]
	s_waitcnt vmcnt(5)
	v_add_f64 v[3:4], v[3:4], v[12:13]
	s_waitcnt vmcnt(4)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[3:4], v[3:4], v[14:15]
	s_waitcnt vmcnt(3)
	v_add_f64 v[3:4], v[3:4], v[16:17]
	s_waitcnt vmcnt(2)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[3:4], v[3:4], v[18:19]
	s_waitcnt vmcnt(1)
	v_add_f64 v[3:4], v[3:4], v[20:21]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[1:2], v[3:4], v[1:2]
	global_store_b64 v[8:9], v[1:2], off
.LBB10_2:
	s_or_b32 exec_lo, exec_lo, s5
	s_mov_b32 s7, 0
	v_lshlrev_b32_e32 v1, 3, v0
	s_lshl_b64 s[6:7], s[6:7], 3
	s_mov_b32 s5, exec_lo
	s_waitcnt lgkmcnt(0)
	s_add_u32 s0, s0, s6
	s_addc_u32 s1, s1, s7
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e32 0x100, v0
	s_cbranch_execz .LBB10_4
; %bb.3:
	v_or_b32_e32 v2, 0x800, v1
	s_clause 0x1
	global_load_b64 v[2:3], v2, s[0:1]
	global_load_b64 v[4:5], v1, s[0:1]
	s_waitcnt vmcnt(0)
	v_add_f64 v[2:3], v[2:3], v[4:5]
	global_store_b64 v1, v[2:3], s[0:1]
.LBB10_4:
	s_or_b32 exec_lo, exec_lo, s5
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s5, exec_lo
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e32 0x80, v0
	s_cbranch_execz .LBB10_6
; %bb.5:
	v_or_b32_e32 v2, 0x400, v1
	s_clause 0x1
	global_load_b64 v[2:3], v2, s[0:1]
	global_load_b64 v[4:5], v1, s[0:1]
	s_waitcnt vmcnt(0)
	v_add_f64 v[2:3], v[2:3], v[4:5]
	global_store_b64 v1, v[2:3], s[0:1]
.LBB10_6:
	s_or_b32 exec_lo, exec_lo, s5
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s5, exec_lo
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e32 64, v0
	s_cbranch_execz .LBB10_8
; %bb.7:
	v_or_b32_e32 v2, 0x200, v1
	s_clause 0x1
	global_load_b64 v[2:3], v2, s[0:1]
	global_load_b64 v[4:5], v1, s[0:1]
	s_waitcnt vmcnt(0)
	v_add_f64 v[2:3], v[2:3], v[4:5]
	global_store_b64 v1, v[2:3], s[0:1]
.LBB10_8:
	s_or_b32 exec_lo, exec_lo, s5
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s5, exec_lo
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e32 32, v0
	s_cbranch_execz .LBB10_10
; %bb.9:
	v_or_b32_e32 v2, 0x100, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v2, s6, s0, v2
	v_add_co_ci_u32_e64 v3, null, s1, 0, s6
	v_add_co_u32 v4, s6, s0, v1
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v5, null, s1, 0, s6
	flat_load_b64 v[1:2], v[2:3] glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:128 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:64 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:32 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:16 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:8 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
.LBB10_10:
	s_or_b32 exec_lo, exec_lo, s5
	s_mov_b32 s5, 0
	s_mov_b32 s6, exec_lo
	v_cmpx_eq_u32_e32 0, v0
	s_cbranch_execz .LBB10_12
; %bb.11:
	v_mov_b32_e32 v2, 0
	global_load_b64 v[0:1], v2, s[0:1]
	s_lshl_b64 s[0:1], s[4:5], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s0, s2, s0
	s_addc_u32 s1, s3, s1
	s_waitcnt vmcnt(0)
	global_store_b64 v2, v[0:1], s[0:1]
.LBB10_12:
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z20reduceCompleteUnrollILj512EEvPdS0_j
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 22
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.section	.text._Z20reduceCompleteUnrollILj512EEvPdS0_j,"axG",@progbits,_Z20reduceCompleteUnrollILj512EEvPdS0_j,comdat
.Lfunc_end10:
	.size	_Z20reduceCompleteUnrollILj512EEvPdS0_j, .Lfunc_end10-_Z20reduceCompleteUnrollILj512EEvPdS0_j
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1196
; NumSgprs: 18
; NumVgprs: 22
; ScratchSize: 0
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 22
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.section	.text._Z20reduceCompleteUnrollILj256EEvPdS0_j,"axG",@progbits,_Z20reduceCompleteUnrollILj256EEvPdS0_j,comdat
	.protected	_Z20reduceCompleteUnrollILj256EEvPdS0_j ; -- Begin function _Z20reduceCompleteUnrollILj256EEvPdS0_j
	.globl	_Z20reduceCompleteUnrollILj256EEvPdS0_j
	.p2align	8
	.type	_Z20reduceCompleteUnrollILj256EEvPdS0_j,@function
_Z20reduceCompleteUnrollILj256EEvPdS0_j: ; @_Z20reduceCompleteUnrollILj256EEvPdS0_j
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s5, s[0:1], 0x10
	s_mov_b32 s4, s15
	s_waitcnt lgkmcnt(0)
	s_and_b32 s7, s2, 0xffff
	s_load_b128 s[0:3], s[0:1], 0x0
	s_mul_i32 s6, s15, s7
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b32 s6, s6, 3
	v_add_nc_u32_e32 v1, s6, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[3:4], null, s7, 7, v[1:2]
	v_cmp_gt_u32_e32 vcc_lo, s5, v3
	s_and_saveexec_b32 s5, vcc_lo
	s_cbranch_execz .LBB11_2
; %bb.1:
	v_mov_b32_e32 v2, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	v_lshlrev_b64 v[6:7], 3, v[1:2]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v8, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v9, vcc_lo, s1, v5, vcc_lo
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v4, vcc_lo, s0, v6
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v7, vcc_lo
	s_clause 0x1
	global_load_b64 v[6:7], v[8:9], off
	global_load_b64 v[10:11], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[12:13], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[14:15], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[16:17], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[18:19], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[20:21], v[4:5], off
	v_mov_b32_e32 v4, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[1:2], 3, v[3:4]
	v_add_co_u32 v1, vcc_lo, s0, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v2, vcc_lo, s1, v2, vcc_lo
	global_load_b64 v[1:2], v[1:2], off
	s_waitcnt vmcnt(6)
	v_add_f64 v[3:4], v[6:7], v[10:11]
	s_waitcnt vmcnt(5)
	v_add_f64 v[3:4], v[3:4], v[12:13]
	s_waitcnt vmcnt(4)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[3:4], v[3:4], v[14:15]
	s_waitcnt vmcnt(3)
	v_add_f64 v[3:4], v[3:4], v[16:17]
	s_waitcnt vmcnt(2)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[3:4], v[3:4], v[18:19]
	s_waitcnt vmcnt(1)
	v_add_f64 v[3:4], v[3:4], v[20:21]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[1:2], v[3:4], v[1:2]
	global_store_b64 v[8:9], v[1:2], off
.LBB11_2:
	s_or_b32 exec_lo, exec_lo, s5
	s_mov_b32 s7, 0
	v_lshlrev_b32_e32 v1, 3, v0
	s_lshl_b64 s[6:7], s[6:7], 3
	s_mov_b32 s5, exec_lo
	s_waitcnt lgkmcnt(0)
	s_add_u32 s0, s0, s6
	s_addc_u32 s1, s1, s7
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_barrier
	buffer_gl0_inv
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e32 0x80, v0
	s_cbranch_execz .LBB11_4
; %bb.3:
	v_or_b32_e32 v2, 0x400, v1
	s_clause 0x1
	global_load_b64 v[2:3], v2, s[0:1]
	global_load_b64 v[4:5], v1, s[0:1]
	s_waitcnt vmcnt(0)
	v_add_f64 v[2:3], v[2:3], v[4:5]
	global_store_b64 v1, v[2:3], s[0:1]
.LBB11_4:
	s_or_b32 exec_lo, exec_lo, s5
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s5, exec_lo
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e32 64, v0
	s_cbranch_execz .LBB11_6
; %bb.5:
	v_or_b32_e32 v2, 0x200, v1
	s_clause 0x1
	global_load_b64 v[2:3], v2, s[0:1]
	global_load_b64 v[4:5], v1, s[0:1]
	s_waitcnt vmcnt(0)
	v_add_f64 v[2:3], v[2:3], v[4:5]
	global_store_b64 v1, v[2:3], s[0:1]
.LBB11_6:
	s_or_b32 exec_lo, exec_lo, s5
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s5, exec_lo
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e32 32, v0
	s_cbranch_execz .LBB11_8
; %bb.7:
	v_or_b32_e32 v2, 0x100, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v2, s6, s0, v2
	v_add_co_ci_u32_e64 v3, null, s1, 0, s6
	v_add_co_u32 v4, s6, s0, v1
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v5, null, s1, 0, s6
	flat_load_b64 v[1:2], v[2:3] glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:128 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:64 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:32 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:16 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:8 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
.LBB11_8:
	s_or_b32 exec_lo, exec_lo, s5
	s_mov_b32 s5, 0
	s_mov_b32 s6, exec_lo
	v_cmpx_eq_u32_e32 0, v0
	s_cbranch_execz .LBB11_10
; %bb.9:
	v_mov_b32_e32 v2, 0
	global_load_b64 v[0:1], v2, s[0:1]
	s_lshl_b64 s[0:1], s[4:5], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s0, s2, s0
	s_addc_u32 s1, s3, s1
	s_waitcnt vmcnt(0)
	global_store_b64 v2, v[0:1], s[0:1]
.LBB11_10:
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z20reduceCompleteUnrollILj256EEvPdS0_j
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 22
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.section	.text._Z20reduceCompleteUnrollILj256EEvPdS0_j,"axG",@progbits,_Z20reduceCompleteUnrollILj256EEvPdS0_j,comdat
.Lfunc_end11:
	.size	_Z20reduceCompleteUnrollILj256EEvPdS0_j, .Lfunc_end11-_Z20reduceCompleteUnrollILj256EEvPdS0_j
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1120
; NumSgprs: 18
; NumVgprs: 22
; ScratchSize: 0
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 22
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.section	.text._Z20reduceCompleteUnrollILj128EEvPdS0_j,"axG",@progbits,_Z20reduceCompleteUnrollILj128EEvPdS0_j,comdat
	.protected	_Z20reduceCompleteUnrollILj128EEvPdS0_j ; -- Begin function _Z20reduceCompleteUnrollILj128EEvPdS0_j
	.globl	_Z20reduceCompleteUnrollILj128EEvPdS0_j
	.p2align	8
	.type	_Z20reduceCompleteUnrollILj128EEvPdS0_j,@function
_Z20reduceCompleteUnrollILj128EEvPdS0_j: ; @_Z20reduceCompleteUnrollILj128EEvPdS0_j
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s5, s[0:1], 0x10
	s_mov_b32 s4, s15
	s_waitcnt lgkmcnt(0)
	s_and_b32 s7, s2, 0xffff
	s_load_b128 s[0:3], s[0:1], 0x0
	s_mul_i32 s6, s15, s7
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b32 s6, s6, 3
	v_add_nc_u32_e32 v1, s6, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[3:4], null, s7, 7, v[1:2]
	v_cmp_gt_u32_e32 vcc_lo, s5, v3
	s_and_saveexec_b32 s5, vcc_lo
	s_cbranch_execz .LBB12_2
; %bb.1:
	v_mov_b32_e32 v2, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	v_lshlrev_b64 v[6:7], 3, v[1:2]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v8, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v9, vcc_lo, s1, v5, vcc_lo
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v4, vcc_lo, s0, v6
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v7, vcc_lo
	s_clause 0x1
	global_load_b64 v[6:7], v[8:9], off
	global_load_b64 v[10:11], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[12:13], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[14:15], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[16:17], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[18:19], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[20:21], v[4:5], off
	v_mov_b32_e32 v4, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[1:2], 3, v[3:4]
	v_add_co_u32 v1, vcc_lo, s0, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v2, vcc_lo, s1, v2, vcc_lo
	global_load_b64 v[1:2], v[1:2], off
	s_waitcnt vmcnt(6)
	v_add_f64 v[3:4], v[6:7], v[10:11]
	s_waitcnt vmcnt(5)
	v_add_f64 v[3:4], v[3:4], v[12:13]
	s_waitcnt vmcnt(4)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[3:4], v[3:4], v[14:15]
	s_waitcnt vmcnt(3)
	v_add_f64 v[3:4], v[3:4], v[16:17]
	s_waitcnt vmcnt(2)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[3:4], v[3:4], v[18:19]
	s_waitcnt vmcnt(1)
	v_add_f64 v[3:4], v[3:4], v[20:21]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[1:2], v[3:4], v[1:2]
	global_store_b64 v[8:9], v[1:2], off
.LBB12_2:
	s_or_b32 exec_lo, exec_lo, s5
	s_mov_b32 s7, 0
	v_lshlrev_b32_e32 v1, 3, v0
	s_lshl_b64 s[6:7], s[6:7], 3
	s_mov_b32 s5, exec_lo
	s_waitcnt lgkmcnt(0)
	s_add_u32 s0, s0, s6
	s_addc_u32 s1, s1, s7
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	s_barrier
	buffer_gl0_inv
	s_barrier
	buffer_gl0_inv
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e32 64, v0
	s_cbranch_execz .LBB12_4
; %bb.3:
	v_or_b32_e32 v2, 0x200, v1
	s_clause 0x1
	global_load_b64 v[2:3], v2, s[0:1]
	global_load_b64 v[4:5], v1, s[0:1]
	s_waitcnt vmcnt(0)
	v_add_f64 v[2:3], v[2:3], v[4:5]
	global_store_b64 v1, v[2:3], s[0:1]
.LBB12_4:
	s_or_b32 exec_lo, exec_lo, s5
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s5, exec_lo
	s_waitcnt_vscnt null, 0x0
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e32 32, v0
	s_cbranch_execz .LBB12_6
; %bb.5:
	v_or_b32_e32 v2, 0x100, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_add_co_u32 v2, s6, s0, v2
	v_add_co_ci_u32_e64 v3, null, s1, 0, s6
	v_add_co_u32 v4, s6, s0, v1
	s_delay_alu instid0(VALU_DEP_1)
	v_add_co_ci_u32_e64 v5, null, s1, 0, s6
	flat_load_b64 v[1:2], v[2:3] glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:128 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:64 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:32 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:16 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[4:5] offset:8 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[6:7], v[4:5] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[6:7]
	flat_store_b64 v[4:5], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
.LBB12_6:
	s_or_b32 exec_lo, exec_lo, s5
	s_mov_b32 s5, 0
	s_mov_b32 s6, exec_lo
	v_cmpx_eq_u32_e32 0, v0
	s_cbranch_execz .LBB12_8
; %bb.7:
	v_mov_b32_e32 v2, 0
	global_load_b64 v[0:1], v2, s[0:1]
	s_lshl_b64 s[0:1], s[4:5], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s0, s2, s0
	s_addc_u32 s1, s3, s1
	s_waitcnt vmcnt(0)
	global_store_b64 v2, v[0:1], s[0:1]
.LBB12_8:
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z20reduceCompleteUnrollILj128EEvPdS0_j
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 22
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.section	.text._Z20reduceCompleteUnrollILj128EEvPdS0_j,"axG",@progbits,_Z20reduceCompleteUnrollILj128EEvPdS0_j,comdat
.Lfunc_end12:
	.size	_Z20reduceCompleteUnrollILj128EEvPdS0_j, .Lfunc_end12-_Z20reduceCompleteUnrollILj128EEvPdS0_j
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 1044
; NumSgprs: 18
; NumVgprs: 22
; ScratchSize: 0
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 22
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.section	.text._Z20reduceCompleteUnrollILj64EEvPdS0_j,"axG",@progbits,_Z20reduceCompleteUnrollILj64EEvPdS0_j,comdat
	.protected	_Z20reduceCompleteUnrollILj64EEvPdS0_j ; -- Begin function _Z20reduceCompleteUnrollILj64EEvPdS0_j
	.globl	_Z20reduceCompleteUnrollILj64EEvPdS0_j
	.p2align	8
	.type	_Z20reduceCompleteUnrollILj64EEvPdS0_j,@function
_Z20reduceCompleteUnrollILj64EEvPdS0_j: ; @_Z20reduceCompleteUnrollILj64EEvPdS0_j
; %bb.0:
	s_clause 0x1
	s_load_b32 s2, s[0:1], 0x24
	s_load_b32 s5, s[0:1], 0x10
	s_mov_b32 s4, s15
	s_waitcnt lgkmcnt(0)
	s_and_b32 s7, s2, 0xffff
	s_load_b128 s[0:3], s[0:1], 0x0
	s_mul_i32 s6, s15, s7
	s_delay_alu instid0(SALU_CYCLE_1) | instskip(NEXT) | instid1(SALU_CYCLE_1)
	s_lshl_b32 s6, s6, 3
	v_add_nc_u32_e32 v1, s6, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_mad_u64_u32 v[3:4], null, s7, 7, v[1:2]
	v_cmp_gt_u32_e32 vcc_lo, s5, v3
	s_and_saveexec_b32 s5, vcc_lo
	s_cbranch_execz .LBB13_2
; %bb.1:
	v_mov_b32_e32 v2, 0
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	v_lshlrev_b64 v[6:7], 3, v[1:2]
	s_waitcnt lgkmcnt(0)
	s_delay_alu instid0(VALU_DEP_3) | instskip(NEXT) | instid1(VALU_DEP_4)
	v_add_co_u32 v8, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v9, vcc_lo, s1, v5, vcc_lo
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_4)
	v_add_co_u32 v4, vcc_lo, s0, v6
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v7, vcc_lo
	s_clause 0x1
	global_load_b64 v[6:7], v[8:9], off
	global_load_b64 v[10:11], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[12:13], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[14:15], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[16:17], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	v_add_nc_u32_e32 v1, s7, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[18:19], v[4:5], off
	v_lshlrev_b64 v[4:5], 3, v[1:2]
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
	v_add_co_u32 v4, vcc_lo, s0, v4
	v_add_co_ci_u32_e32 v5, vcc_lo, s1, v5, vcc_lo
	global_load_b64 v[20:21], v[4:5], off
	v_mov_b32_e32 v4, v2
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_lshlrev_b64 v[1:2], 3, v[3:4]
	v_add_co_u32 v1, vcc_lo, s0, v1
	s_delay_alu instid0(VALU_DEP_2) | instskip(SKIP_4) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e32 v2, vcc_lo, s1, v2, vcc_lo
	global_load_b64 v[1:2], v[1:2], off
	s_waitcnt vmcnt(6)
	v_add_f64 v[3:4], v[6:7], v[10:11]
	s_waitcnt vmcnt(5)
	v_add_f64 v[3:4], v[3:4], v[12:13]
	s_waitcnt vmcnt(4)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[3:4], v[3:4], v[14:15]
	s_waitcnt vmcnt(3)
	v_add_f64 v[3:4], v[3:4], v[16:17]
	s_waitcnt vmcnt(2)
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_f64 v[3:4], v[3:4], v[18:19]
	s_waitcnt vmcnt(1)
	v_add_f64 v[3:4], v[3:4], v[20:21]
	s_waitcnt vmcnt(0)
	s_delay_alu instid0(VALU_DEP_1)
	v_add_f64 v[1:2], v[3:4], v[1:2]
	global_store_b64 v[8:9], v[1:2], off
.LBB13_2:
	s_or_b32 exec_lo, exec_lo, s5
	s_mov_b32 s7, 0
	s_mov_b32 s5, exec_lo
	s_lshl_b64 s[6:7], s[6:7], 3
	s_waitcnt lgkmcnt(0)
	s_waitcnt_vscnt null, 0x0
	s_add_u32 s0, s0, s6
	s_addc_u32 s1, s1, s7
	s_barrier
	buffer_gl0_inv
	s_barrier
	buffer_gl0_inv
	s_barrier
	buffer_gl0_inv
	s_barrier
	buffer_gl0_inv
	s_barrier
	buffer_gl0_inv
	v_cmpx_gt_u32_e32 32, v0
	s_cbranch_execz .LBB13_4
; %bb.3:
	v_lshlrev_b32_e32 v3, 3, v0
	s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
	v_or_b32_e32 v1, 0x100, v3
	v_add_co_u32 v1, s6, s0, v1
	s_delay_alu instid0(VALU_DEP_1) | instskip(SKIP_1) | instid1(VALU_DEP_1)
	v_add_co_ci_u32_e64 v2, null, s1, 0, s6
	v_add_co_u32 v3, s6, s0, v3
	v_add_co_ci_u32_e64 v4, null, s1, 0, s6
	flat_load_b64 v[1:2], v[1:2] glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[5:6], v[3:4] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[5:6]
	flat_store_b64 v[3:4], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[3:4] offset:128 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[5:6], v[3:4] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[5:6]
	flat_store_b64 v[3:4], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[3:4] offset:64 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[5:6], v[3:4] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[5:6]
	flat_store_b64 v[3:4], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[3:4] offset:32 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[5:6], v[3:4] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[5:6]
	flat_store_b64 v[3:4], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[3:4] offset:16 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[5:6], v[3:4] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[5:6]
	flat_store_b64 v[3:4], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
	flat_load_b64 v[1:2], v[3:4] offset:8 glc dlc
	s_waitcnt vmcnt(0)
	flat_load_b64 v[5:6], v[3:4] glc dlc
	s_waitcnt vmcnt(0) lgkmcnt(0)
	v_add_f64 v[1:2], v[1:2], v[5:6]
	flat_store_b64 v[3:4], v[1:2] dlc
	s_waitcnt_vscnt null, 0x0
.LBB13_4:
	s_or_b32 exec_lo, exec_lo, s5
	s_delay_alu instid0(SALU_CYCLE_1)
	s_mov_b32 s5, exec_lo
	v_cmpx_eq_u32_e32 0, v0
	s_cbranch_execz .LBB13_6
; %bb.5:
	v_mov_b32_e32 v2, 0
	s_mov_b32 s5, 0
	global_load_b64 v[0:1], v2, s[0:1]
	s_lshl_b64 s[0:1], s[4:5], 3
	s_delay_alu instid0(SALU_CYCLE_1)
	s_add_u32 s0, s2, s0
	s_addc_u32 s1, s3, s1
	s_waitcnt vmcnt(0)
	global_store_b64 v2, v[0:1], s[0:1]
.LBB13_6:
	s_endpgm
	.section	.rodata,"a",@progbits
	.p2align	6, 0x0
	.amdhsa_kernel _Z20reduceCompleteUnrollILj64EEvPdS0_j
		.amdhsa_group_segment_fixed_size 0
		.amdhsa_private_segment_fixed_size 0
		.amdhsa_kernarg_size 280
		.amdhsa_user_sgpr_count 15
		.amdhsa_user_sgpr_dispatch_ptr 0
		.amdhsa_user_sgpr_queue_ptr 0
		.amdhsa_user_sgpr_kernarg_segment_ptr 1
		.amdhsa_user_sgpr_dispatch_id 0
		.amdhsa_user_sgpr_private_segment_size 0
		.amdhsa_wavefront_size32 1
		.amdhsa_uses_dynamic_stack 0
		.amdhsa_enable_private_segment 0
		.amdhsa_system_sgpr_workgroup_id_x 1
		.amdhsa_system_sgpr_workgroup_id_y 0
		.amdhsa_system_sgpr_workgroup_id_z 0
		.amdhsa_system_sgpr_workgroup_info 0
		.amdhsa_system_vgpr_workitem_id 0
		.amdhsa_next_free_vgpr 22
		.amdhsa_next_free_sgpr 16
		.amdhsa_float_round_mode_32 0
		.amdhsa_float_round_mode_16_64 0
		.amdhsa_float_denorm_mode_32 3
		.amdhsa_float_denorm_mode_16_64 3
		.amdhsa_dx10_clamp 1
		.amdhsa_ieee_mode 1
		.amdhsa_fp16_overflow 0
		.amdhsa_workgroup_processor_mode 1
		.amdhsa_memory_ordered 1
		.amdhsa_forward_progress 0
		.amdhsa_shared_vgpr_count 0
		.amdhsa_exception_fp_ieee_invalid_op 0
		.amdhsa_exception_fp_denorm_src 0
		.amdhsa_exception_fp_ieee_div_zero 0
		.amdhsa_exception_fp_ieee_overflow 0
		.amdhsa_exception_fp_ieee_underflow 0
		.amdhsa_exception_fp_ieee_inexact 0
		.amdhsa_exception_int_div_zero 0
	.end_amdhsa_kernel
	.section	.text._Z20reduceCompleteUnrollILj64EEvPdS0_j,"axG",@progbits,_Z20reduceCompleteUnrollILj64EEvPdS0_j,comdat
.Lfunc_end13:
	.size	_Z20reduceCompleteUnrollILj64EEvPdS0_j, .Lfunc_end13-_Z20reduceCompleteUnrollILj64EEvPdS0_j
                                        ; -- End function
	.section	.AMDGPU.csdata,"",@progbits
; Kernel info:
; codeLenInByte = 976
; NumSgprs: 18
; NumVgprs: 22
; ScratchSize: 0
; MemoryBound: 1
; FloatMode: 240
; IeeeMode: 1
; LDSByteSize: 0 bytes/workgroup (compile time only)
; SGPRBlocks: 2
; VGPRBlocks: 2
; NumSGPRsForWavesPerEU: 18
; NumVGPRsForWavesPerEU: 22
; Occupancy: 16
; WaveLimiterHint : 1
; COMPUTE_PGM_RSRC2:SCRATCH_EN: 0
; COMPUTE_PGM_RSRC2:USER_SGPR: 15
; COMPUTE_PGM_RSRC2:TRAP_HANDLER: 0
; COMPUTE_PGM_RSRC2:TGID_X_EN: 1
; COMPUTE_PGM_RSRC2:TGID_Y_EN: 0
; COMPUTE_PGM_RSRC2:TGID_Z_EN: 0
; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 0
	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgpu_metadata
---
amdhsa.kernels:
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z16reduceNeighboredPdS_j
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z16reduceNeighboredPdS_j.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     7
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z20reduceNeighboredLessPdS_j
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z20reduceNeighboredLessPdS_j.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     9
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z17reduceInterleavedPdS_j
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z17reduceInterleavedPdS_j.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     7
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z16reduceUnrolling2PdS_j
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z16reduceUnrolling2PdS_j.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     7
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z16reduceUnrolling4PdS_j
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z16reduceUnrolling4PdS_j.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     14
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z16reduceUnrolling8PdS_j
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z16reduceUnrolling8PdS_j.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     22
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z18reduceUnrollWarps8PdS_j
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z18reduceUnrollWarps8PdS_j.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     22
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z26reduceCompleteUnrollWarps8PdS_j
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z26reduceCompleteUnrollWarps8PdS_j.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     22
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z17reduceUnrollWarpsPdS_j
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z17reduceUnrollWarpsPdS_j.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     8
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z20reduceCompleteUnrollILj1024EEvPdS0_j
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z20reduceCompleteUnrollILj1024EEvPdS0_j.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     22
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z20reduceCompleteUnrollILj512EEvPdS0_j
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z20reduceCompleteUnrollILj512EEvPdS0_j.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     22
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z20reduceCompleteUnrollILj256EEvPdS0_j
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z20reduceCompleteUnrollILj256EEvPdS0_j.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     22
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z20reduceCompleteUnrollILj128EEvPdS0_j
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z20reduceCompleteUnrollILj128EEvPdS0_j.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     22
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
  - .args:
      - .address_space:  global
        .offset:         0
        .size:           8
        .value_kind:     global_buffer
      - .address_space:  global
        .offset:         8
        .size:           8
        .value_kind:     global_buffer
      - .offset:         16
        .size:           4
        .value_kind:     by_value
      - .offset:         24
        .size:           4
        .value_kind:     hidden_block_count_x
      - .offset:         28
        .size:           4
        .value_kind:     hidden_block_count_y
      - .offset:         32
        .size:           4
        .value_kind:     hidden_block_count_z
      - .offset:         36
        .size:           2
        .value_kind:     hidden_group_size_x
      - .offset:         38
        .size:           2
        .value_kind:     hidden_group_size_y
      - .offset:         40
        .size:           2
        .value_kind:     hidden_group_size_z
      - .offset:         42
        .size:           2
        .value_kind:     hidden_remainder_x
      - .offset:         44
        .size:           2
        .value_kind:     hidden_remainder_y
      - .offset:         46
        .size:           2
        .value_kind:     hidden_remainder_z
      - .offset:         64
        .size:           8
        .value_kind:     hidden_global_offset_x
      - .offset:         72
        .size:           8
        .value_kind:     hidden_global_offset_y
      - .offset:         80
        .size:           8
        .value_kind:     hidden_global_offset_z
      - .offset:         88
        .size:           2
        .value_kind:     hidden_grid_dims
    .group_segment_fixed_size: 0
    .kernarg_segment_align: 8
    .kernarg_segment_size: 280
    .language:       OpenCL C
    .language_version:
      - 2
      - 0
    .max_flat_workgroup_size: 1024
    .name:           _Z20reduceCompleteUnrollILj64EEvPdS0_j
    .private_segment_fixed_size: 0
    .sgpr_count:     18
    .sgpr_spill_count: 0
    .symbol:         _Z20reduceCompleteUnrollILj64EEvPdS0_j.kd
    .uniform_work_group_size: 1
    .uses_dynamic_stack: false
    .vgpr_count:     22
    .vgpr_spill_count: 0
    .wavefront_size: 32
    .workgroup_processor_mode: 1
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
