Skip to content

iamgroot42/popcll_torch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

POPCLL for PyTorch

Installation

To build package yourself

  1. cd into popcll_torch
  2. Run python setup.py install to install.
  3. Run python setup.py bdist_wheel to build wheel (for sharing).

To use pre-built package

  1. cd into popcll_torch/dist
  2. Run pip install popcll_torch-1.0-cp39-cp39-linux_x86_64.whl

Usage

import torch as ch
from popcll_torch import popcll
z = ch.tensor([0,1,2,3,4,5,6,7,8], dtype=ch.long).cuda()
counts = popcll(z)

Currently only works with int/long 1-D tensors on CUDA.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published