Commit be654387 authored by Leonardo Solis's avatar Leonardo Solis

deleted not-needed altera examples

parent cf4e15d0
# Copyright (C) 2013-2016 Altera Corporation, San Jose, California, USA. All rights reserved.
# Permission is hereby granted, free of charge, to any person obtaining a copy of this
# software and associated documentation files (the "Software"), to deal in the Software
# without restriction, including without limitation the rights to use, copy, modify, merge,
# publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to
# whom the Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in all copies or
# substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
#
# This agreement shall be governed in all respects by the laws of the State of California and
# by the laws of the United States of America.
# This is a GNU Makefile.
# You must configure ALTERAOCLSDKROOT to point the root directory of the Intel(R) FPGA SDK for OpenCL(TM)
# software installation.
# See http://www.altera.com/literature/hb/opencl-sdk/aocl_getting_started.pdf
# for more information on installing and configuring the Intel(R) FPGA SDK for OpenCL(TM).
ifeq ($(VERBOSE),1)
ECHO :=
else
ECHO := @
endif
# Where is the Intel(R) FPGA SDK for OpenCL(TM) software?
ifeq ($(wildcard $(ALTERAOCLSDKROOT)),)
$(error Set ALTERAOCLSDKROOT to the root directory of the Intel(R) FPGA SDK for OpenCL(TM) software installation)
endif
ifeq ($(wildcard $(ALTERAOCLSDKROOT)/host/include/CL/opencl.h),)
$(error Set ALTERAOCLSDKROOT to the root directory of the Intel(R) FPGA SDK for OpenCL(TM) software installation.)
endif
# OpenCL compile and link flags.
AOCL_COMPILE_CONFIG := $(shell aocl compile-config )
AOCL_LINK_CONFIG := $(shell aocl link-config )
# Compilation flags
ifeq ($(DEBUG),1)
CXXFLAGS += -g
else
CXXFLAGS += -O2
endif
# Compiler
CXX := g++
# Target
TARGET := host
TARGET_DIR := bin
# Directories
INC_DIRS := ../common/inc
LIB_DIRS :=
# Files
INCS := $(wildcard )
SRCS := $(wildcard host/src/*.cpp ../common/src/AOCLUtils/*.cpp)
LIBS := rt pthread
# Make it all!
all : $(TARGET_DIR)/$(TARGET)
# Host executable target.
$(TARGET_DIR)/$(TARGET) : Makefile $(SRCS) $(INCS) $(TARGET_DIR)
$(ECHO)$(CXX) $(CPPFLAGS) $(CXXFLAGS) -fPIC $(foreach D,$(INC_DIRS),-I$D) \
$(AOCL_COMPILE_CONFIG) $(SRCS) $(AOCL_LINK_CONFIG) \
$(foreach D,$(LIB_DIRS),-L$D) \
$(foreach L,$(LIBS),-l$L) \
-o $(TARGET_DIR)/$(TARGET)
$(TARGET_DIR) :
$(ECHO)mkdir $(TARGET_DIR)
# Standard make targets
clean :
$(ECHO)rm -f $(TARGET_DIR)/$(TARGET)
.PHONY : all clean
This diff is collapsed.
Compiler Command: aoc -march=emulator -v device/asian_option.cl -o bin/asian_option.aocx
Scalarizer can't handle insertelement with non-constant index: %vecins = insertelement <16 x i32> %28, i32 %26, i32 %27, !dbg !249
Scalarizer can't handle insertelement with non-constant index: %vecins31 = insertelement <16 x i32> %32, i32 %30, i32 %31, !dbg !251
Scalarizer can't handle insertelement with non-constant index: %vecins35 = insertelement <16 x i32> %36, i32 %34, i32 %35, !dbg !252
Scalarizer can't handle insertelement with non-constant index: %vecins39 = insertelement <16 x i32> %40, i32 %38, i32 %39, !dbg !253
Scalarizer can't handle insertelement with non-constant index: %vecins = insertelement <16 x float> %98, float %96, i32 %97, !dbg !298
Scalarizer can't handle insertelement with non-constant index: %vecins146 = insertelement <16 x float> %102, float %100, i32 %101, !dbg !300
Scalarizer can't handle insertelement with non-constant index: %vecins150 = insertelement <16 x float> %106, float %104, i32 %105, !dbg !301
Scalarizer can't handle insertelement with non-constant index: %vecins154 = insertelement <16 x float> %110, float %108, i32 %109, !dbg !302
- Version Identifier
- Board name
- Specifies if the kernel is a virtual fabric
- Specifies whether the kernel was built in big-endian mode
- Number of memory interfaces (DIMMS or banks) usable as device global memory
- Size of global memory allocated by program
- Number of kernels
For each kernel:
g - Kernel name
- Start address of kernel control registers
- Size of kernel control registers
- 0x0 (for internal use)
- 0x0 (for internal use)
- 0/1 value to indicate if the kernel is work-group invariant (if the value is 1, kernel launch will be modified to make local_size = global_size. This is an optimization so Emulator ignores it.
- Number of times kernel operations are vectorized. The kernel will launched with fewer work-items in each work-groups as many times as the number of vector lanes.
- number of words in this kernel's profile scan chain.
- Number of kernel arguments
- Number of printf calls
- Number of local memory systems.
- X-dim of required work-group size
- Y-dim of required work-group size
- Z-dim of required work-group size
- Maximum work-group size
- Maximum global work dimension
g - Kernel name
- Start address of kernel control registers
- Size of kernel control registers
- 0x0 (for internal use)
- 0x0 (for internal use)
- 0/1 value to indicate if the kernel is work-group invariant (if the value is 1, kernel launch will be modified to make local_size = global_size. This is an optimization so Emulator ignores it.
- Number of times kernel operations are vectorized. The kernel will launched with fewer work-items in each work-groups as many times as the number of vector lanes.
- number of words in this kernel's profile scan chain.
- Number of kernel arguments
For each kernel argument:
- internal # representing its type
- internal # representing its category
- its size
- Number of printf calls
- Number of local memory systems.
- X-dim of required work-group size
- Y-dim of required work-group size
- Z-dim of required work-group size
- Maximum work-group size
- Maximum global work dimension
g - Kernel name
- Start address of kernel control registers
- Size of kernel control registers
- 0x0 (for internal use)
- 0x0 (for internal use)
- 0/1 value to indicate if the kernel is work-group invariant (if the value is 1, kernel launch will be modified to make local_size = global_size. This is an optimization so Emulator ignores it.
- Number of times kernel operations are vectorized. The kernel will launched with fewer work-items in each work-groups as many times as the number of vector lanes.
- number of words in this kernel's profile scan chain.
- Number of kernel arguments
For each kernel argument:
- internal # representing its type
- internal # representing its category
- its size
For each kernel argument:
- internal # representing its type
- internal # representing its category
- its size
For each kernel argument:
- internal # representing its type
- internal # representing its category
- its size
For each kernel argument:
- internal # representing its type
- internal # representing its category
- its size
For each kernel argument:
- internal # representing its type
- internal # representing its category
- its size
For each kernel argument:
- internal # representing its type
- internal # representing its category
- its size
- Number of printf calls
- Number of local memory systems.
- X-dim of required work-group size
- Y-dim of required work-group size
- Z-dim of required work-group size
- Maximum work-group size
- Maximum global work dimension
g - Kernel name
- Start address of kernel control registers
- Size of kernel control registers
- 0x0 (for internal use)
- 0x0 (for internal use)
- 0/1 value to indicate if the kernel is work-group invariant (if the value is 1, kernel launch will be modified to make local_size = global_size. This is an optimization so Emulator ignores it.
- Number of times kernel operations are vectorized. The kernel will launched with fewer work-items in each work-groups as many times as the number of vector lanes.
- number of words in this kernel's profile scan chain.
- Number of kernel arguments
For each kernel argument:
- internal # representing its type
- internal # representing its category
- its size
- Number of printf calls
- Number of local memory systems.
- X-dim of required work-group size
- Y-dim of required work-group size
- Z-dim of required work-group size
- Maximum work-group size
- Maximum global work dimension
14 EmulatorDevice 0 0 0 0 4 mersenne_twister_init 0 0 0 0 0 1 0 0 0 0 0 0 0 2147483647 3 mersenne_twister_generate 0 0 0 0 0 1 0 1 0 0 8 0 0 0 0 0 2147483647 3 black_scholes 0 0 0 0 0 1 0 6 0 0 4 0 0 4 0 0 4 0 0 4 0 0 4 0 0 4 0 0 8192 1 1 2147483647 3 accumulate_partial_results 0 0 0 0 0 1 0 1 2 1 8 0 0 0 0 0 2147483647 3
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
// Copyright (C) 2013-2016 Altera Corporation, San Jose, California, USA. All rights reserved.
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to
// whom the Software is furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.
//
// This agreement shall be governed in all respects by the laws of the State of California and
// by the laws of the United States of America.
// Main include file for AOCLUtils. Includes all other utility header files.
#ifndef AOCL_UTILS_H
#define AOCL_UTILS_H
#include "AOCLUtils/opencl.h"
#include "AOCLUtils/scoped_ptrs.h"
#include "AOCLUtils/options.h"
#endif
// Copyright (C) 2013-2016 Altera Corporation, San Jose, California, USA. All rights reserved.
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to
// whom the Software is furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.
//
// This agreement shall be governed in all respects by the laws of the State of California and
// by the laws of the United States of America.
// OpenCL utility functions.
#ifndef AOCL_UTILS_OPENCL_H
#define AOCL_UTILS_OPENCL_H
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include "CL/opencl.h"
// This is assumed to be externally provided by the application.
extern void cleanup();
namespace aocl_utils {
// Host allocation functions
void *alignedMalloc(size_t size);
void alignedFree(void *ptr);
// Error functions
void printError(cl_int error);
void _checkError(int line,
const char *file,
cl_int error,
const char *msg,
...); // does not return
#define checkError(status, ...) _checkError(__LINE__, __FILE__, status, __VA_ARGS__)
// Sets the current working directory to the same directory that contains
// this executable. Returns true on success.
bool setCwdToExeDir();
// Find a platform that contains the search string in its name (case-insensitive match).
// Returns NULL if no match is found.
cl_platform_id findPlatform(const char *platform_name_search);
// Returns the name of the platform.
std::string getPlatformName(cl_platform_id pid);
// Returns the name of the device.
std::string getDeviceName(cl_device_id did);