IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
698B

  1. from setuptools import setup, Extension
  2. from torch.utils import cpp_extension
  3. setup(name='torch_stablesort',
  4. py_modules=['torch_stablesort'],
  5. ext_modules=[ cpp_extension.CUDAExtension( 'torch_stablesort_cpp',
  6. ['torch_stablesort.cpp', 'torch_stablesort_cpu.cpp', 'torch_stablesort_cuda.cu'],
  7. extra_compile_args={
  8. 'cxx': ['-fopenmp', '-ggdb', '-std=c++1z'],
  9. 'nvcc': [ '-I/pstore/home/adaszews/scratch/thrust',
  10. '-ccbin', '/pstore/data/data_science/app/modules/anaconda3-2020.07/bin/x86_64-conda_cos6-linux-gnu-gcc', '-std=c++14']
  11. } ) ],
  12. cmdclass={'build_ext': cpp_extension.BuildExtension})