Sha256: e3d194792b4b0605108d0cd214dfaab10df679c031ca65cf5f8bf0603c73f223

Contents?: true

Size: 232 Bytes

Versions: 1

Compression:

Stored size: 232 Bytes

Contents

  
  // Create space for <array> on the device
  <type>* device_<array> = 0;
  cudaMalloc((void**)&device_<array>, <variable_dimensions>*sizeof(<type>));
  cudaMemset((void*)device_<array>, 0, <variable_dimensions>*sizeof(<type>));

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bones-compiler-1.1.0 skeletons/GPU-CUDA/common/mem_prologue.c