Skip to content

Instantly share code, notes, and snippets.

View singam-sanjay's full-sized avatar

Singapuram Sanjay Srivallabh singam-sanjay

  • Chennai/Hyderabad
View GitHub Profile
#include<stdio.h>
#include<stdlib.h>
#include<iostream>
float *A, *B, *C;
int N = 1000, K = 1200 , M = 1100;
float alpha=1.5, beta = 1.2;
@singam-sanjay
singam-sanjay / polly_flag_all_PPCGCodeGen_failures.diff
Created June 12, 2017 20:20
Changes to mainly PPCGCodeGeneration.cpp that highlight/output where it fails to optimize the code.
diff --git a/lib/CodeGen/PPCGCodeGeneration.cpp b/lib/CodeGen/PPCGCodeGeneration.cpp
index 37f7dae..1f6cace 100644
--- a/lib/CodeGen/PPCGCodeGeneration.cpp
+++ b/lib/CodeGen/PPCGCodeGeneration.cpp
@@ -1419,7 +1419,7 @@ void GPUNodeBuilder::createKernel(__isl_take isl_ast_node *KernelStmt) {
Builder.SetInsertPoint(&HostInsertPoint);
Value *Parameters = createLaunchParameters(Kernel, F, SubtreeValues);
- std::string Name = "kernel_" + std::to_string(Kernel->id);
+ std::string Name = S.getFunction().getName().str() + "_kernel_" + std::to_string(Kernel->id);
@singam-sanjay
singam-sanjay / add_mat.ll
Created May 11, 2017 11:59
LLVM IR of add_mat
; ModuleID = 'add_mat'
source_filename = "add_mat"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
; Function Attrs: sspstrong
define void @julia_add_mat_64414(i8** dereferenceable(40), i8** dereferenceable(40)) #0 !dbg !5 {
top:
br label %top.split, !dbg !22
@singam-sanjay
singam-sanjay / test_all.sh
Created April 21, 2017 17:29
Script to test PollyACC in many build configurations
BUILD_TYPE=
is_BUILD_SHARED_LIBS=
is_LLVM_LINK_LLVM_DYLIB=
is_LLVM_POLLY_LINK_INTO_TOOLS=
BUILD_TYPES=("Release" "Debug")
BOOL_VALS_ASC=("OFF" "ON")
BOOL_VALS_DESC=("ON" "OFF")
_options_=""
@singam-sanjay
singam-sanjay / gist:7dd0de9df8a59d936868b7de6000c2ed
Created March 20, 2017 16:54
Dependencies of libjulia-debug.so.6 | ldd ./usr/lib/libjulia-debug.so
linux-vdso.so.1 => (0x00007ffff973a000)
libPolly.so => /home/sanjay/Software/polly_julia/llvm_build/lib/libPolly.so (0x00007f2ac9eaf000)
libLLVMDebugInfoDWARF.so.5 => /home/sanjay/Software/polly_julia/llvm_build/lib/libLLVMDebugInfoDWARF.so.5 (0x00007f2ac9d63000)
libLLVMX86Disassembler.so.5 => /home/sanjay/Software/polly_julia/llvm_build/lib/libLLVMX86Disassembler.so.5 (0x00007f2ac9bf8000)
libLLVMX86AsmParser.so.5 => /home/sanjay/Software/polly_julia/llvm_build/lib/libLLVMX86AsmParser.so.5 (0x00007f2ac9b0f000)
libLLVMX86CodeGen.so.5 => /home/sanjay/Software/polly_julia/llvm_build/lib/libLLVMX86CodeGen.so.5 (0x00007f2ac9587000)
libLLVMX86Desc.so.5 => /home/sanjay/Software/polly_julia/llvm_build/lib/libLLVMX86Desc.so.5 (0x00007f2ac934f000)
libLLVMMCDisassembler.so.5 => /home/sanjay/Software/polly_julia/llvm_build/lib/libLLVMMCDisassembler.so.5 (0x00007f2ac9331000)
libLLVMX86Info.so.5 => /home/sanjay/Software/polly_julia/llvm_build/lib/libLLVMX86Info.so.5 (0x00007f2ac932c000)
libLLVMExecutionEngine.so