Set C++17 for latest pytorch versions. Add flags for CUDA 12 and 11.8 (#641)

* Set C++17 for latest pytorch versions. Add flags for CUDA 12 and 11.8

* Update setup.py

* remove import subprocess

* more robust way to compare version

---------

Co-authored-by: Jinze Xue <jinzexue@ufl.edu>
9 jobs for master in 0 seconds (queued for 73 minutes and 4 seconds)
Status Job ID Name Coverage
  Build
failed #17136
build

 
  Test
skipped #17139
allowed to fail
bandit-sast
failed #17138
allowed to fail
code_quality

skipped #17140
allowed to fail
eslint-sast
skipped #17141
allowed to fail
flawfinder-sast
skipped #17144
allowed to fail
secret_detection
skipped #17142
allowed to fail
semgrep-sast
skipped #17143
allowed to fail
spotbugs-sast
failed #17137
test

 
Name Stage Failure
failed
test Test There has been a timeout failure or the job got stuck. Check your timeout limits or try again
No job log
failed
build Build There has been a timeout failure or the job got stuck. Check your timeout limits or try again
No job log
failed
code_quality Test There has been a timeout failure or the job got stuck. Check your timeout limits or try again
No job log