https://github.com/Microsoft/CNTK
Raw File
Tip revision: eb43ecd1f6b53d0b567f6dab21e1a112de90593b authored by Tim Dettmers on 29 June 2016, 21:31:00 UTC
Merge branch 't-tidett/ExtendedCUDAErrors' of https://github.com/Microsoft/CNTK into t-tidett/ExtendedCUDAErrors
Tip revision: eb43ecd
BlockMultiplierPlatform.h
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full licence information.
//
#pragma once
#ifdef _MSC_VER
#define ALIGNED_ALLOC(bytes,alignment) _aligned_malloc(bytes,alignment)
#define ALIGNED_FREE(ptr) _aligned_free(ptr)
#define FORCEINLINE __forceinline
#else
#ifdef __GNUC__
#include <stdlib.h>
#define ALIGNED_ALLOC(bytes,alignment) aligned_alloc(alignment,bytes)
#define ALIGNED_FREE(ptr) free(ptr)
//#define FORCEINLINE __attribute__((always_inline)) 
#define FORCEINLINE inline 
#endif
#endif

back to top